public class CRC16_CCITT_FALSE extends Object
| Constructor and Description | 
|---|
CRC16_CCITT_FALSE()
Private constructor to prevent instantiation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getValue()
Returns CRC-16 value. 
 | 
void | 
reset()
Resets CRC to initial value. 
 | 
void | 
update(byte[] b)
Updates checksum with specified array of bytes. 
 | 
void | 
update(byte[] b,
      int off,
      int len)  | 
void | 
update(int b)
Perform the CRC16 on the data element based on a zero seed. 
 | 
public CRC16_CCITT_FALSE()
public int getValue()
public void reset()
public void update(byte[] b)
b - the array of bytes to update the checksum withpublic void update(byte[] b,
                   int off,
                   int len)
public void update(int b)
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
b - data element on which to perform the CRC16