/guava/android/guava/src/com/google/common/io/ByteSource.java
int read1 = ByteStreams.read( buf1, 0, buf1.length) ;
int read1 = ByteStreams.read ( in1, buf1, 0, buf1.length ) ;
byte[] buf2 = createBuffer(); Closer closer = Closer.create(); try { InputStream in1 = closer.register(openStream()); InputStream in2 = closer.register(other.openStream()); while (true) { <extra_id_0> int read2 = ByteStreams.read(in2, buf2, 0, buf2.length); if (read1 != read2 || !Arrays.equals(buf1, buf2)) { return false; } else if (read1 != buf1.length) { return true; }