public abstract class AbstractDigester extends 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 |
|---|---|
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
|
protected String |
encode(byte[] unencoded) |
abstract byte[] |
makeDigest(byte[] content) |
abstract byte[] |
makeDigest(ByteChannel channel) |
byte[] |
makeDigest(File file) |
abstract byte[] |
makeDigest(InputStream is) |
public AbstractDigester()
public AbstractDigester(AbstractDigester.DigestEncoding encoding)
public final String digest(byte[] content)
IDigesterdigest in interface IDigesterIDigester.digest(byte[])public final String digest(File file) throws IOException
IDigesterdigest in interface IDigesterIOExceptionIDigester.digest(java.io.File)public final String digest(InputStream is) throws IOException
IDigesterdigest in interface IDigesterIOExceptionIDigester.digest(java.io.InputStream)public final String digest(ByteChannel channel) throws IOException
IDigesterdigest in interface IDigesterIOExceptionprotected final String encode(byte[] unencoded)
public abstract byte[] makeDigest(byte[] content)
public byte[] makeDigest(File file) throws IOException
IOExceptionpublic abstract byte[] makeDigest(InputStream is) throws IOException
IOExceptionpublic abstract byte[] makeDigest(ByteChannel channel) throws IOException
IOExceptionCopyright © 2015. All rights reserved.