public interface FileHasher128
A 128-bit hash function for files and input streams.
-
Method Summary
Modifier and TypeMethodDescriptionhashFileTo128Bits(File file) Calculates a 128-bit hash value for the given file.hashFileTo128Bits(Path path) Calculates a 128-bit hash value for the given path.hashInputStreamTo128Bits(InputStream inputStream, long length) Calculates a 128-bit hash value for a given number of bytes of the given input stream.
-
Method Details
-
hashFileTo128Bits
Calculates a 128-bit hash value for the given file.- Parameters:
file- a file- Returns:
- the hash value
- Throws:
IOException- if an I/O error occurs
-
hashFileTo128Bits
Calculates a 128-bit hash value for the given path.- Parameters:
path- a path- Returns:
- the hash value
- Throws:
IOException- if an I/O error occurs
-
hashInputStreamTo128Bits
Calculates a 128-bit hash value for a given number of bytes of the given input stream.- Parameters:
inputStream- the input streamlength- the length of the input stream- Returns:
- the hash value
- Throws:
IOException- if an I/O error occurs
-