public class CRC32 extends Checksum
Constructor and Description |
---|
CRC32() |
Modifier and Type | Method and Description |
---|---|
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(byte[] buf)
Adds the complete byte array to the data checksum.
|
void |
update(byte[] buf,
int off,
int len)
Adds the byte array to the data checksum.
|
void |
update(int bval)
Updates the checksum with the int bval.
|
public long getValue()
public void reset()
public void update(int bval)
bval
- (the byte is taken as the lower 8 bits of bval)public void update(byte[] buf, int off, int len)
buf
- the buffer which contains the dataoff
- the offset in the buffer where the data startslen
- the length of the datapublic void update(byte[] buf)