Class DigesterOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class DigesterOutputStream
    extends java.io.ByteArrayOutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger LOG  
      (package private) MessageDigestAlgorithm mda  
      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getDigestValue()  
      void write​(byte[] arg0)
      void write​(byte[] arg0, int arg1, int arg2)
      void write​(int arg0)
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, toString, writeBytes, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, nullOutputStream
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • write

        public void write​(byte[] arg0)
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(int arg0)
        Overrides:
        write in class java.io.ByteArrayOutputStream
      • write

        public void write​(byte[] arg0,
                          int arg1,
                          int arg2)
        Overrides:
        write in class java.io.ByteArrayOutputStream
      • getDigestValue

        public byte[] getDigestValue()
        Returns:
        the digest value