Class CRC
java.lang.Object
org.apache.commons.compress.compressors.bzip2.CRC
A simple class the hold and calculate the cyclic redundancy check (CRC) for sanity checking of the data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final int[]
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
private static final int DEFAULT- See Also:
-
CRC32_TABLE
private static final int[] CRC32_TABLE -
crc
private int crc
-
-
Constructor Details
-
CRC
CRC()
-
-
Method Details
-
compute
private int compute(int baseCrc, int inCh) -
getValue
int getValue() -
reset
void reset() -
update
void update(int inCh) -
update
void update(int inCh, int repeat)
-