Class CRC
java.lang.Object
org.apache.commons.compress.compressors.bzip2.CRC
A simple class the hold and calculate the CRC for sanity checking of the
data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
(package private) int
(package private) void
(package private) void
setGlobalCRC
(int newCrc) (package private) void
updateCRC
(int inCh) (package private) void
updateCRC
(int inCh, int repeat)
-
Field Details
-
crc32Table
private static final int[] crc32Table -
globalCrc
private int globalCrc
-
-
Constructor Details
-
CRC
CRC()
-
-
Method Details
-
initializeCRC
void initializeCRC() -
getFinalCRC
int getFinalCRC() -
getGlobalCRC
int getGlobalCRC() -
setGlobalCRC
void setGlobalCRC(int newCrc) -
updateCRC
void updateCRC(int inCh) -
updateCRC
void updateCRC(int inCh, int repeat)
-