java.util.zip
public interface Checksum
getValue
. The complete checksum object can also be reset
so it can be used again with new data.
See Also: CheckedInputStream
Method Summary | |
---|---|
long | getValue()
Returns the data checksum computed so far. |
void | reset()
Resets the data checksum as if no update was ever called. |
void | update(int bval)
Adds one byte to the data checksum.
|
void | update(byte[] buf, int off, int len)
Adds the byte array to the data checksum.
|
Parameters: bval the data value to add. The high byte of the int is ignored.
Parameters: buf the buffer which contains the data off the offset in the buffer where the data starts len the length of the data