Class Adler32

  • All Implemented Interfaces:
    Checksum

    public final class Adler32
    extends java.lang.Object
    implements Checksum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int BASE  
      private static int NMAX  
      private long s1  
      private long s2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Adler32()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static long combine​(long adler1, long adler2, long len2)  
      Adler32 copy()  
      long getValue()  
      void reset()  
      void reset​(long init)  
      void update​(byte[] buf, int index, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adler32

        public Adler32()
    • Method Detail

      • reset

        public void reset​(long init)
        Specified by:
        reset in interface Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface Checksum
      • getValue

        public long getValue()
        Specified by:
        getValue in interface Checksum
      • update

        public void update​(byte[] buf,
                           int index,
                           int len)
        Specified by:
        update in interface Checksum
      • combine

        static long combine​(long adler1,
                            long adler2,
                            long len2)