Class ChecksumHandler

java.lang.Object
org.cdlib.mrt.s3.tools.ChecksumHandler

public class ChecksumHandler extends Object
Author:
replic
  • Field Details

    • NAME

      protected static final String NAME
      See Also:
    • MESSAGE

      protected static final String MESSAGE
      See Also:
    • DEBUG

      protected static final boolean DEBUG
      See Also:
    • RETRY

      protected static int RETRY
    • digestList

      protected ArrayList<ChecksumHandler.Digest> digestList
    • buf

      protected byte[] buf
    • addBufTime

      protected long addBufTime
    • fillBufTime

      protected long fillBufTime
    • fillBufBytes

      protected long fillBufBytes
    • log4j

      protected static final org.apache.logging.log4j.Logger log4j
  • Constructor Details

    • ChecksumHandler

      protected ChecksumHandler(String[] types) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
  • Method Details

    • getChecksumHandler

      public static ChecksumHandler getChecksumHandler(String[] types) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getDigests

      public static ArrayList<ChecksumHandler.Digest> getDigests(String[] types) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • addBuff

      public void addBuff(byte[] bytes)
    • getAlgorithm

      public static ChecksumHandler.MessageDigestType getAlgorithm(String algorithmS)
    • getChecksum

      public String getChecksum(String checksumType) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getDigest

      public ChecksumHandler.Digest getDigest(String checksumType) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • finishDigests

      public void finishDigests() throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • finishDigest

      public static void finishDigest(ChecksumHandler.Digest inDigest) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getDigestHashStandard

      public HashMap<String,String> getDigestHashStandard()
    • getDigestHashIn

      public HashMap<String,String> getDigestHashIn()
    • getDigestJson

      public org.json.JSONObject getDigestJson()
    • dumpDigests

      public void dumpDigests(String header, HashMap<String,String> digests)
    • fillBuff

      public Long fillBuff(InputStream inStream, ByteBuffer buffer, int buffSize) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • fillBuff

      public Long fillBuff(byte[] bytes) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getDigest

      public static ChecksumHandler.Digest getDigest(CloudStoreInf service, String bucket, String key, int retry) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getSha256

      public static String getSha256(CloudStoreInf service, String bucket, String key) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • getAddBufTime

      public long getAddBufTime()
    • getFillBufTime

      public long getFillBufTime()
    • getFillBufBytes

      public long getFillBufBytes()