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