public abstract class AbstractDigester extends java.lang.Object implements IDigester
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDigester.DigestEncoding |
| Constructor and Description |
|---|
AbstractDigester() |
AbstractDigester(AbstractDigester.DigestEncoding encoding) |
| 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
|
protected java.lang.String |
encode(byte[] unencoded) |
abstract byte[] |
makeDigest(byte[] content) |
abstract byte[] |
makeDigest(java.nio.channels.ByteChannel channel) |
byte[] |
makeDigest(java.io.File file) |
abstract byte[] |
makeDigest(java.io.InputStream is) |
public AbstractDigester()
public AbstractDigester(AbstractDigester.DigestEncoding encoding)
public final java.lang.String digest(byte[] content)
IDigesterdigest in interface IDigesterIDigester.digest(byte[])public final java.lang.String digest(java.io.File file)
throws java.io.IOException
IDigesterdigest in interface IDigesterjava.io.IOExceptionIDigester.digest(java.io.File)public final java.lang.String digest(java.io.InputStream is)
throws java.io.IOException
IDigesterdigest in interface IDigesterjava.io.IOExceptionIDigester.digest(java.io.InputStream)public final java.lang.String digest(java.nio.channels.ByteChannel channel)
throws java.io.IOException
IDigesterprotected final java.lang.String encode(byte[] unencoded)
public abstract byte[] makeDigest(byte[] content)
public byte[] makeDigest(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic abstract byte[] makeDigest(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic abstract byte[] makeDigest(java.nio.channels.ByteChannel channel)
throws java.io.IOException
java.io.IOExceptionCopyright © 2014. All Rights Reserved.