Package org.duracloud.chunk.stream
Class CountingDigestInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.CountingInputStream
org.duracloud.chunk.stream.CountingDigestInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CountingDigestInputStream
extends org.apache.commons.io.input.CountingInputStream
This class combines the two InputStream implementations:
- CountingInputStream &
- DigestInputStream
- Author:
- Andrew Woods Date: Feb 10, 2010
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCountingDigestInputStream(InputStream inputStream, boolean preserveMD5) The digest capabilities are turned off if the arg preserveMD5 is false -
Method Summary
Methods inherited from class org.apache.commons.io.input.CountingInputStream
afterRead, getByteCount, getCount, resetByteCount, resetCount, skipMethods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, resetMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CountingDigestInputStream
The digest capabilities are turned off if the arg preserveMD5 is false- Parameters:
inputStream-preserveMD5-
-
-
Method Details
-
getMD5
-