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:
java.io.Closeable
,java.lang.AutoCloseable
public class ExactDigestValidatorInputStream extends org.apache.commons.io.input.ProxyInputStream
Input stream that checks input stream digest
-
-
Constructor Summary
Constructors Constructor Description ExactDigestValidatorInputStream(java.io.InputStream in, DigestType digestType, java.lang.String expectedDigest)
-
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
-
-
-
-
Constructor Detail
-
ExactDigestValidatorInputStream
public ExactDigestValidatorInputStream(java.io.InputStream in, DigestType digestType, java.lang.String expectedDigest)
-
-