| Constructor and Description |
|---|
CRC32() |
| Modifier and Type | Method and Description |
|---|---|
long |
getValue()
Returns the CRC32 checksum for all input received.
|
void |
reset()
Resets the CRC32 checksum to it initial state.
|
void |
update(byte[] buf)
Updates this checksum with the bytes contained in buffer
buf. |
void |
update(byte[] buf,
int offset,
int byteCount)
Update this
CRC32 checksum with the contents of buf,
starting from offset and reading byteCount bytes of data. |
void |
update(int val)
Updates this checksum with the byte value provided as integer.
|
public long getValue()
public void reset()
public void update(int val)
public void update(byte[] buf)
buf.buf - the buffer holding the data to update the checksum with.public void update(byte[] buf,
int offset,
int byteCount)
CRC32 checksum with the contents of buf,
starting from offset and reading byteCount bytes of data.