| Constructor and Description |
|---|
CRC32Digester() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
digest(byte[] content)
Produces the digest of a byte array
|
java.lang.String |
digest(java.nio.channels.ByteChannel channel)
Digests a ByteChannel; the performance of this method may possibly be higher (but it may also be slightly slower)
than that of the InputStream method
|
java.lang.String |
digest(java.io.File file)
Produces the digest of a File
|
java.lang.String |
digest(java.io.InputStream is)
Produces the digest of an InputStream
|
static CRC32Digester |
getInstance() |
protected java.util.zip.Checksum |
newChecksum() |
public static CRC32Digester getInstance()
public java.lang.String digest(byte[] content)
IDigesterpublic java.lang.String digest(java.io.File file)
throws java.io.IOException
IDigesterdigest in interface IDigesterjava.io.IOExceptionIDigester.digest(java.io.File)public java.lang.String digest(java.io.InputStream is)
throws java.io.IOException
IDigesterpublic java.lang.String digest(java.nio.channels.ByteChannel channel)
throws java.io.IOException
IDigesterprotected java.util.zip.Checksum newChecksum()
Copyright © 2014. All Rights Reserved.