Class CRC32VerifyingInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

A stream that verifies the CRC of the data read once the stream is exhausted.
Since:
1.6
This class is not thread-safe
  • Constructor Details

    • CRC32VerifyingInputStream

      @Deprecated public CRC32VerifyingInputStream(InputStream in, long size, int expectedCrc32)
      Deprecated.
      No longer used.
      Constructs a new instance.
      Parameters:
      in - the stream to wrap
      size - the of the stream's content
      expectedCrc32 - the expected checksum
    • CRC32VerifyingInputStream

      public CRC32VerifyingInputStream(InputStream in, long size, long expectedCrc32)
      Constructs a new instance.
      Parameters:
      in - the stream to wrap
      size - the of the stream's content
      expectedCrc32 - the expected checksum
      Since:
      1.7