|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Checksum is an interface that all data checksum objects (such as Adler32 and CRC32) should implement.
| Method Summary | |
long |
getValue()
Returns the current value of the checksum |
void |
reset()
Resets the checksum to the initial value |
void |
update(byte[] b,
int offset,
int length)
Updates the checksum with the data in the given array |
void |
update(int b)
Updates the checksum with the given byte |
| Method Detail |
public long getValue()
public void update(int b)
b - the byte of data to update the checksum with
public void update(byte[] b,
int offset,
int length)
b - the array containing the dataoffset - the index of the first byte of datalength - the number of data bytes in the arraypublic void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||