Package org.apache.commons.compress.utils

# Class ChecksumCalculatingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.util.zip.CheckedInputStream
org.apache.commons.compress.utils.ChecksumCalculatingInputStream

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

@Deprecated public class ChecksumCalculatingInputStream extends CheckedInputStream
Deprecated.
Use `CheckedInputStream`.
Calculates the checksum of the data read.

Since:
  1.14
This class is not thread-safe

- ## Field Summary

  ### Fields inherited from class java.io.FilterInputStream

  `in`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChecksumCalculatingInputStream(Checksum checksum, InputStream inputStream)`
  Deprecated.
  Use `CheckedInputStream(InputStream, Checksum)`.

- ## Method Summary

  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.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ChecksumCalculatingInputStream

    @Deprecated public ChecksumCalculatingInputStream(Checksum checksum, InputStream inputStream)
    Deprecated.
    Use `CheckedInputStream(InputStream, Checksum)`.
    Constructs a new instance.
    Parameters:
      `checksum` - The checksum to update
      `inputStream` - The input stream to read.

- ## Method Details

  - ### getValue

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