fix bug: set inner buffer limit

This commit is contained in:
David Renshaw 2014-09-29 15:15:37 -04:00
parent 8264742779
commit 31995a1fb9

View file

@ -50,6 +50,7 @@ public final class BufferedInputStreamWrapper implements BufferedInputStream {
} else { } else {
//# Forward large read to the underlying stream. //# Forward large read to the underlying stream.
this.buf.clear(); this.buf.clear();
this.buf.limit(0);
return fromFirstBuffer + readAtLeast(this.inner, dst, numBytes); return fromFirstBuffer + readAtLeast(this.inner, dst, numBytes);
} }
} }