|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface for calculating checksums.
| Method Summary | |
int |
getValue()
Gets the current checksum value. |
void |
reset()
Resets the checksum to the initial value. |
void |
update(byte[] b,
int off,
int len)
Calculates the checksum of the given part of the byte array, updating its current value. |
void |
update(int b)
Updates the checksum with the byte b. |
| Method Detail |
public void update(int b)
b - the byte, only the lower 8 bits are used.
public void update(byte[] b,
int off,
int len)
b - an array of bytesoff - the offset into the array.len - the length.public void reset()
public int getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||