java.util.zip
public class CRC32 extends Object implements Checksum
See Also: InflaterInputStream
UNKNOWN: April 1, 1999.
Method Summary | |
---|---|
long | getValue()
Returns the CRC32 data checksum computed so far. |
void | reset()
Resets the CRC32 data checksum as if no update was ever called. |
void | update(int bval)
Updates the checksum with the int bval.
|
void | update(byte[] buf, int off, int len)
Adds the byte array to the data checksum.
|
void | update(byte[] buf)
Adds the complete byte array to the data checksum. |
Parameters: bval (the byte is taken as the lower 8 bits of bval)
Parameters: buf the buffer which contains the data off the offset in the buffer where the data starts len the length of the data