public class ZDigest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private java.security.MessageDigest |
sha1 |
Constructor and Description |
---|
ZDigest()
Creates a new digester.
|
ZDigest(byte[] buffer)
Creates a new digester.
|
public ZDigest()
public ZDigest(byte[] buffer)
buffer
- the temp buffer used for computation of streams.public ZDigest update(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public ZDigest update(byte[] input)
public ZDigest update(byte[] input, int offset, int length)
public byte[] data()
public int size()
public java.lang.String string()