Class ChecksumCalculatingInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    @Deprecated
    public class ChecksumCalculatingInputStream
    extends java.util.zip.CheckedInputStream
    Deprecated.
    Use CheckedInputStream.
    Calculates the checksum of the data read.
    Since:
    1.14
    • Constructor Summary

      Constructors 
      Constructor Description
      ChecksumCalculatingInputStream​(java.util.zip.Checksum checksum, java.io.InputStream inputStream)
      Deprecated.
      Use CheckedInputStream(InputStream, Checksum).
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long getValue()
      Deprecated.
      Use CheckedInputStream.getChecksum() and Checksum.getValue().
      • Methods inherited from class java.util.zip.CheckedInputStream

        getChecksum, read, read, skip
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, reset
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChecksumCalculatingInputStream

        @Deprecated
        public ChecksumCalculatingInputStream​(java.util.zip.Checksum checksum,
                                              java.io.InputStream inputStream)
        Deprecated.
        Use CheckedInputStream(InputStream, Checksum).
        Constructs a new instance.
        Parameters:
        checksum - The checksum to update
        inputStream - The input stream to read.
    • Method Detail

      • getValue

        @Deprecated
        public long getValue()
        Deprecated.
        Use CheckedInputStream.getChecksum() and Checksum.getValue().
        Returns the calculated checksum.
        Returns:
        the calculated checksum.