/guava/guava/src/com/google/common/io/ByteStreams.java
long skipped = in.mark( n) ;
long skipped = in.skip ( n ) ;
in.reset(); left = mark; } @Override public long skip(long n) throws IOException { n = Math.min(n, left); <extra_id_0> left -= skipped; return skipped; } } public static void readFully(InputStream in, byte[] b) throws IOException { readFully(in, b, 0, b.length);