Class java.util.CRC16
All Packages This Package Previous Next
Class java.util.CRC16
java.lang.Object
|
+----java.util.CRC16
-
public class
CRC16
-
extends Object
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.
-
value
-
value contains the currently computed CRC, set it to 0 initally
-
CRC16()
-
-
reset()
-
reset CRC value to 0
-
update(byte)
-
update CRC with byte b
value
public int value
-
value contains the currently computed CRC, set it to 0 initally
CRC16
public CRC16()
update
public void update(byte aByte)
-
update CRC with byte b
reset
public void reset()
-
reset CRC value to 0
All Packages This Package Previous Next