public class CRC16
extends java.lang.Object
implements java.util.zip.Checksum
| Constructor and Description |
|---|
CRC16() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
getTable() |
long |
getValue() |
void |
reset() |
void |
update(byte[] b)
Update 16-bit CRC.
|
void |
update(byte[] b,
int off,
int len)
Update 16-bit CRC.
|
void |
update(int b)
Update 16-bit CRC.
|
public static int[] getTable()
public long getValue()
getValue in interface java.util.zip.Checksumpublic void reset()
reset in interface java.util.zip.Checksumpublic void update(int b)
update in interface java.util.zip.Checksumb - input bytepublic void update(byte[] b)
b - input byte arraypublic void update(byte[] b,
int off,
int len)
update in interface java.util.zip.Checksumb - input byte arrayoff - starting offset to datalen - number of bytes to process