Class 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
    • 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()