Class Crc32

  • All Implemented Interfaces:
    java.util.zip.Checksum

    public final class Crc32
    extends java.lang.Object
    implements java.util.zip.Checksum
    CRC32 algorithm as used by Deflate.
    • Constructor Summary

      Constructors 
      Constructor Description
      Crc32()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int crc32​(int crc32, byte[] buf, int index, int len)  
      long getValue()  
      void reset()  
      void update​(byte[] b)  
      void update​(byte[] b, int off, int len)  
      void update​(int b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.zip.Checksum

        update
    • Constructor Detail

      • Crc32

        public Crc32()
    • Method Detail

      • crc32

        public static int crc32​(int crc32,
                                @Nonnull
                                byte[] buf,
                                int index,
                                int len)
      • update

        public void update​(int b)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface java.util.zip.Checksum
      • getValue

        public long getValue()
        Specified by:
        getValue in interface java.util.zip.Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface java.util.zip.Checksum