| Constructor and Description |
|---|
CRC32Digester() |
| Modifier and Type | Method and Description |
|---|---|
String |
digest(byte[] content)
Produces the digest of a byte array
|
String |
digest(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
|
String |
digest(File file)
Produces the digest of a File
|
String |
digest(InputStream is)
Produces the digest of an InputStream
|
static CRC32Digester |
getInstance() |
protected Checksum |
newChecksum() |
public static CRC32Digester getInstance()
public String digest(byte[] content)
IDigesterpublic String digest(File file) throws IOException
IDigesterdigest in interface IDigesterIOExceptionIDigester.digest(java.io.File)public String digest(InputStream is) throws IOException
IDigesterdigest in interface IDigesterIOExceptionpublic String digest(ByteChannel channel) throws IOException
IDigesterdigest in interface IDigesterIOExceptionprotected Checksum newChecksum()
Copyright © 2015. All rights reserved.