Class CRC
java.lang.Object
org.jboss.shrinkwrap.impl.base.io.tar.bzip.CRC
A simple class the hold and calculate the CRC for sanity checking of the
data.
Forked from Apache Commons-Compress with possible changes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int(package private) int(package private) void(package private) voidsetGlobalCRC(int newCrc) (package private) voidupdateCRC(int inCh) (package private) voidupdateCRC(int inCh, int repeat)
-
Field Details
-
crc32Table
private static final int[] crc32Table -
globalCrc
private int globalCrc
-
-
Constructor Details
-
CRC
CRC()
-
-
Method Details
-
initialiseCRC
void initialiseCRC() -
getFinalCRC
int getFinalCRC() -
getGlobalCRC
int getGlobalCRC() -
setGlobalCRC
void setGlobalCRC(int newCrc) -
updateCRC
void updateCRC(int inCh) -
updateCRC
void updateCRC(int inCh, int repeat)
-