org.codehaus.plexus.archiver.bzip2
Class CRC

java.lang.Object
  extended by org.codehaus.plexus.archiver.bzip2.CRC

 class CRC
extends java.lang.Object

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

Version:
$Revision: 2436 $ $Date: 2005-09-01 13:20:41 -0400 (Thu, 01 Sep 2005) $ from org.apache.ant.tools.bzip2.CRC v1.9

Field Summary
static int[] crc32Table
           
(package 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crc32Table

public static int[] crc32Table

globalCrc

int globalCrc
Constructor Detail

CRC

public CRC()
Method Detail

initialiseCRC

void initialiseCRC()

getFinalCRC

int getFinalCRC()

getGlobalCRC

int getGlobalCRC()

setGlobalCRC

void setGlobalCRC(int newCrc)

updateCRC

void updateCRC(int inCh)


Copyright 2001-2001-2006 Codehaus. All Rights Reserved.