|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eyebolt.iplib.CRC16
The CRC-16 class calculates a 16 bit cyclic redundancy check of a set of bytes. This error detecting code is used to determine if bit rot has occured in a byte stream.
Field Summary | |
private int |
value
value contains the currently computed CRC, set to 0 initally |
Constructor Summary | |
CRC16()
Constructor for the CRC16 object |
Method Summary | |
int |
getValue()
value accessor |
void |
reset()
reset CRC value to 0 |
void |
update(byte aByte)
update CRC with byte b |
void |
update(byte[] bytes)
update CRC with an array of bytes |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int value
Constructor Detail |
public CRC16()
Method Detail |
public int getValue()
public void update(byte aByte)
aByte
- Description of Parameterpublic void update(byte[] bytes)
bytes
- Description of Parameterpublic void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |