Constructor and Description |
---|
Adler32() |
Modifier and Type | Method and Description |
---|---|
long |
getValue()
Returns the
Adler32 checksum for all input received. |
void |
reset()
Reset this instance to its initial checksum.
|
void |
update(byte[] buf)
Update this
Adler32 checksum using the contents of buf . |
void |
update(byte[] buf,
int offset,
int byteCount)
Update this
Adler32 checksum with the contents of buf ,
starting from offset and reading byteCount bytes of data. |
void |
update(int i)
Update this
Adler32 checksum with the single byte provided as
argument. |
public long getValue()
Adler32
checksum for all input received.public void reset()
public void update(int i)
Adler32
checksum with the single byte provided as
argument.public void update(byte[] buf)
Adler32
checksum using the contents of buf
.buf
- bytes to update checksum with.public void update(byte[] buf, int offset, int byteCount)
Adler32
checksum with the contents of buf
,
starting from offset
and reading byteCount
bytes of data.