java.lang.Object
org.jboss.shrinkwrap.impl.base.io.tar.bzip.CRC

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

Forked from Apache Commons-Compress with possible changes

  • 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)