ClusterSupport2.getValueStreamBig now returns -1 when EOF is reached.
Previously it was invalidly throwing IOException (and before that very
invalidly throwing IllegalStateException).
refs #6741
Change-Id: I220e6bd26b94d92ae1db5a330ca3304035e7614e
@Override
public int read() throws IOException {
@Override
public int read() throws IOException {
- if(left <= 0)
- throw new IOException("left <= 0 for " + _s);
+ if(left <= 0) return -1;
if(offset == _s.bytes.length) {
short slen = (short)Math.min(left, IMAX);
if(offset == _s.bytes.length) {
short slen = (short)Math.min(left, IMAX);