| java.util.zip.Checksum
All known Subclasses: java.util.zip.CRC32, java.util.zip.Adler32,
Checksum | public interface Checksum (Code) | | Interface to types that can compute a checksum value of given data.
|
Method Summary | |
public long | getValue() Answers the computed checksum value so far. | public void | reset() Reinitialize the checksum computation to its starting value. | public void | update(byte[] buf, int off, int nbytes) | public void | update(int val) Update the checksum value based on the given data value. |
getValue | public long getValue()(Code) | | Answers the computed checksum value so far.
the checksum value |
reset | public void reset()(Code) | | Reinitialize the checksum computation to its starting value.
|
update | public void update(byte[] buf, int off, int nbytes)(Code) | | Update the checksum value based on the given byte array
Parameters: buf - the data used to update the checksum Parameters: off - the starting point for data values Parameters: nbytes - the number of bytes to consider |
update | public void update(int val)(Code) | | Update the checksum value based on the given data value.
Parameters: val - a single byte value |
|
|