| 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 LengthDigester |
getInstance() |
public static LengthDigester getInstance()
public java.lang.String digest(byte[] content)
IDigesterpublic java.lang.String digest(java.io.File file)
throws java.io.IOException
IDigesterpublic 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
IDigesterCopyright © 2014. All Rights Reserved.