/guava/guava/src/com/google/common/io/ByteStreams.java
if ( mark == -1) {
if ( result != -1 ) {
public int read(byte[] b, int off, int len) throws IOException { if (left == 0) { return -1; } len = (int) Math.min(len, left); int result = in.read(b, off, len); <extra_id_0> left -= result; } return result; } @Override public synchronized void reset() throws IOException {