org.apache.commons.vfs.provider.bzip2
Class CRC

java.lang.Object
  extended by org.apache.commons.vfs.provider.bzip2.CRC

 class CRC
extends java.lang.Object

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

Author:
Keiron Liddle

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

Field Detail

CRC32_TABLE

private static int[] CRC32_TABLE

m_globalCrc

private int m_globalCrc
Constructor Detail

CRC

protected CRC()
Method Detail

getFinalCRC

int getFinalCRC()

initialiseCRC

void initialiseCRC()

updateCRC

void updateCRC(int inCh)