org.duracloud.chunk.stream
Class CountingDigestInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.commons.io.input.ProxyInputStream
              extended by org.apache.commons.io.input.CountingInputStream
                  extended by org.duracloud.chunk.stream.CountingDigestInputStream
All Implemented Interfaces:
java.io.Closeable

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
CountingDigestInputStream(java.io.InputStream inputStream, boolean preserveMD5)
          The digest capabilities are turned off if the arg preserveMD5 is false
 
Method Summary
 java.lang.String getMD5()
           
 
Methods inherited from class org.apache.commons.io.input.CountingInputStream
getByteCount, getCount, read, read, read, resetByteCount, resetCount, skip
 
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, close, mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingDigestInputStream

public CountingDigestInputStream(java.io.InputStream inputStream,
                                 boolean preserveMD5)
The digest capabilities are turned off if the arg preserveMD5 is false

Parameters:
inputStream -
preserveMD5 -
Method Detail

getMD5

public java.lang.String getMD5()


Copyright © 2009-2011 DuraSpace. All Rights Reserved.