Class ChecksumVerifyingInputStream

java.lang.Object
java.io.InputStream
org.apache.commons.compress.utils.ChecksumVerifyingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
CRC32VerifyingInputStream

A stream that verifies the checksum of the data read once the stream is exhausted.
Since:
1.7
  • Constructor Details

    • ChecksumVerifyingInputStream

      public ChecksumVerifyingInputStream(Checksum checksum, InputStream in, long size, long expectedChecksum)
      Constructs a new instance.
      Parameters:
      checksum - Checksum implementation.
      in - the stream to wrap
      size - the of the stream's content
      expectedChecksum - the expected checksum
  • Method Details