Class ExactDigestValidatorInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
fr.gouv.vitam.common.stream.ExactDigestValidatorInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

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

    • ExactDigestValidatorInputStream

      public ExactDigestValidatorInputStream(InputStream in, DigestType digestType, String expectedDigest)
  • Method Details

    • afterRead

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