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

class CRC extends Object
A simple class the hold and calculate the CRC for sanity checking of the data.
  • 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)