Open SiteSearch 4.1.1
Final

ORG.oclc.ecat.util
Class CRC16

java.lang.Object
  |
  +--ORG.oclc.ecat.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.


Field Summary
 int value
          value contains the currently computed CRC, set it to 0 initally
 
Constructor Summary
CRC16()
           
 
Method Summary
 void reset()
          reset CRC value to 0
 void update(byte aByte)
          update CRC with byte b
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public int value
value contains the currently computed CRC, set it to 0 initally
Constructor Detail

CRC16

public CRC16()
Method Detail

update

public void update(byte aByte)
update CRC with byte b

reset

public void reset()
reset CRC value to 0

Open SiteSearch 4.1.1
Final