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
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionExactDigestValidatorInputStream
(InputStream in, DigestType digestType, String expectedDigest) -
Method Summary
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
-
Constructor Details
-
ExactDigestValidatorInputStream
public ExactDigestValidatorInputStream(InputStream in, DigestType digestType, String expectedDigest)
-
-
Method Details
-
afterRead
- Overrides:
afterRead
in classorg.apache.commons.io.input.ProxyInputStream
- Throws:
IOException
-