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

final class CRC extends Object
A simple class the hold and calculate the cyclic redundancy check (CRC) for sanity checking of the data.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private static final int[]
     
    private static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CRC()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private int
    compute(int baseCrc, int inCh)
     
    (package private) int
     
    (package private) void
     
    (package private) void
    update(int inCh)
     
    (package private) void
    update(int inCh, int repeat)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT

      private static final int DEFAULT
      See Also:
    • CRC32_TABLE

      private static final int[] CRC32_TABLE
    • crc

      private int crc
  • Constructor Details

    • CRC

      CRC()
  • Method Details

    • compute

      private int compute(int baseCrc, int inCh)
    • getValue

      int getValue()
    • reset

      void reset()
    • update

      void update(int inCh)
    • update

      void update(int inCh, int repeat)