| java.util.zip.Checksum
All known Subclasses: java.util.zip.CRC32, java.util.zip.Adler32,
Checksum | public interface Checksum (Code) | | An interface representing a data checksum.
version: 1.23, 05/05/07 author: David Connelly |
Method Summary | |
public long | getValue() Returns the current checksum value. | public void | reset() Resets the checksum to its initial value. | public void | update(int b) Updates the current checksum with the specified byte. | public void | update(byte[] b, int off, int len) Updates the current checksum with the specified array of bytes. |
getValue | public long getValue()(Code) | | Returns the current checksum value.
the current checksum value |
reset | public void reset()(Code) | | Resets the checksum to its initial value.
|
update | public void update(int b)(Code) | | Updates the current checksum with the specified byte.
Parameters: b - the byte to update the checksum with |
update | public void update(byte[] b, int off, int len)(Code) | | Updates the current checksum with the specified array of bytes.
Parameters: b - the byte array to update the checksum with Parameters: off - the start offset of the data Parameters: len - the number of bytes to use for the update |
|
|