Package io.minio

Class Checksum.CRC32C

java.lang.Object
io.minio.Checksum.CRC32C
All Implemented Interfaces:
Checksum.Hasher, Checksum
Enclosing class:
Checksum

public static class Checksum.CRC32C extends Object implements Checksum, Checksum.Hasher
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    Resets the hasher for further use.
    byte[]
    sum()
    Completes the hash computation by performing final operations such as padding.
     
    void
    update(byte[] b, int off, int len)
    Updates len bytes from the specified byte array starting at offset off to this hasher.
    void
    update(int b)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.zip.Checksum

    update, update
  • Constructor Details

    • CRC32C

      public CRC32C()
  • Method Details

    • update

      public void update(int b)
      Specified by:
      update in interface Checksum
    • update

      public void update(byte[] b, int off, int len)
      Description copied from interface: Checksum.Hasher
      Updates len bytes from the specified byte array starting at offset off to this hasher.
      Specified by:
      update in interface Checksum
      Specified by:
      update in interface Checksum.Hasher
    • getValue

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

      public void reset()
      Description copied from interface: Checksum.Hasher
      Resets the hasher for further use.
      Specified by:
      reset in interface Checksum
      Specified by:
      reset in interface Checksum.Hasher
    • sum

      public byte[] sum()
      Description copied from interface: Checksum.Hasher
      Completes the hash computation by performing final operations such as padding.
      Specified by:
      sum in interface Checksum.Hasher
    • toString

      public String toString()
      Overrides:
      toString in class Object