Package fr.gouv.vitam.common.stream

# 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

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.apache.commons.io.input.ProxyInputStream

  `org.apache.commons.io.input.ProxyInputStream.AbstractBuilder<T,B extends org.apache.commons.io.build.AbstractStreamBuilder<T,B>>`

- ## Field Summary

  ### Fields inherited from class java.io.FilterInputStream

  `in`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExactDigestValidatorInputStream(InputStream in, DigestType digestType, String expectedDigest)`

- ## Method Summary

  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, unwrap`

  ### Methods inherited from class java.io.InputStream

  `nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo`

  ### Methods inherited from class java.lang.Object

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

- ## 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`