public class CRC16_IBM extends Object
CRC16 is based on the polynomial = X^16 + X^15 + X^2 + 1.
| Constructor and Description |
|---|
CRC16_IBM()
Private constructor to prevent instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
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 int getCount()
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