public interface ChecksumGenerator
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChecksum(java.io.InputStream in)
Return a checksum of the bytes read from the supplied input stream.
|
java.lang.String |
getChecksum(java.lang.String input)
Return a checksum of the bytes of the supplied input string.
|
java.lang.String getChecksum(java.io.InputStream in) throws java.io.IOException
in
- an InputStream
in
.java.io.IOException
- if there was an error reading the input streamjava.lang.String getChecksum(java.lang.String input)
input
- the String to checksuminput
.