Class ExactDigestValidatorInputStream

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

    public class ExactDigestValidatorInputStream
    extends org.apache.commons.io.input.ProxyInputStream
    Input stream that checks input stream digest
    • Field Summary

      • Fields inherited from class java.io.FilterInputStream

        in
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void afterRead​(int n)  
      • Methods inherited from class org.apache.commons.io.input.ProxyInputStream

        available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

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

      • ExactDigestValidatorInputStream

        public ExactDigestValidatorInputStream​(java.io.InputStream in,
                                               DigestType digestType,
                                               java.lang.String expectedDigest)
    • Method Detail

      • afterRead

        protected void afterRead​(int n)
                          throws java.io.IOException
        Overrides:
        afterRead in class org.apache.commons.io.input.ProxyInputStream
        Throws:
        java.io.IOException