Hashes the contents of this byte source using the given hash function. @throws IOException if an I/O error occurs in the process of reading from this source
(HashFunction hashFunction)
| 323 | * @throws IOException if an I/O error occurs in the process of reading from this source |
| 324 | */ |
| 325 | public HashCode hash(HashFunction hashFunction) throws IOException { |
| 326 | Hasher hasher = hashFunction.newHasher(); |
| 327 | copyTo(Funnels.asOutputStream(hasher)); |
| 328 | return hasher.hash(); |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Checks that the contents of this byte source are equal to the contents of the given byte |
nothing calls this directly
no test coverage detected