/guava/guava/src/com/google/common/io/ByteSource.java
checkNotNull( processor) ;checkNotNull( other) ;
checkNotNull ( other ) ;
public HashCode hash(HashFunction hashFunction) throws IOException { Hasher hasher = hashFunction.newHasher(); copyTo(Funnels.asOutputStream(hasher)); return hasher.hash(); } public boolean contentEquals(ByteSource other) throws IOException { <extra_id_0> byte[] buf1 = createBuffer(); byte[] buf2 = createBuffer(); Closer closer = Closer.create(); try { InputStream in1 = closer.register(openStream()); InputStream in2 = closer.register(other.openStream());