org.apache.commons.compress.compressors.bzip2
Class CRC

java.lang.Object
  extended by org.apache.commons.compress.compressors.bzip2.CRC

 class CRC
extends java.lang.Object

A simple class the hold and calculate the CRC for sanity checking of the data.


Field Summary
private static int[] crc32Table
           
private  int globalCrc
           
 
Constructor Summary
CRC()
           
 
Method Summary
(package private)  int getFinalCRC()
           
(package private)  int getGlobalCRC()
           
(package private)  void initialiseCRC()
           
(package private)  void setGlobalCRC(int newCrc)
           
(package private)  void updateCRC(int inCh)
           
(package private)  void updateCRC(int inCh, int repeat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crc32Table

private static final int[] crc32Table

globalCrc

private int globalCrc
Constructor Detail

CRC

CRC()
Method Detail

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)