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.CountingInputStreamThis 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
Constructors Constructor Description CountingDigestInputStream(InputStream inputStream, boolean preserveMD5)The digest capabilities are turned off if the arg preserveMD5 is false
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMD5()-
Methods inherited from class org.apache.commons.io.input.CountingInputStream
afterRead, getByteCount, getCount, resetByteCount, resetCount, skip
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, read, read, read, reset
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CountingDigestInputStream
public CountingDigestInputStream(InputStream inputStream, boolean preserveMD5)
The digest capabilities are turned off if the arg preserveMD5 is false- Parameters:
inputStream-preserveMD5-
-
-
Method Detail
-
getMD5
public String getMD5()
-
-