| 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 LengthDigester |
getInstance() |
public static LengthDigester getInstance()
public String digest(byte[] content)
IDigesterpublic String digest(File file) throws IOException
IDigesterdigest in interface IDigesterIOExceptionpublic String digest(InputStream is) throws IOException
IDigesterdigest in interface IDigesterIOExceptionpublic String digest(ByteChannel channel) throws IOException
IDigesterdigest in interface IDigesterIOExceptionCopyright © 2014. All rights reserved.