org.apache.commons.compress.utils

## Class CRC32VerifyingInputStream

- java.lang.Object
- - java.io.InputStream
  - - org.apache.commons.compress.utils.ChecksumVerifyingInputStream
    - - org.apache.commons.compress.utils.CRC32VerifyingInputStream

- All Implemented Interfaces:
    Closeable

      public class CRC32VerifyingInputStream
      extends ChecksumVerifyingInputStream

  A stream that verifies the CRC of the data read once the stream is exhausted.
  Since:
    1.6

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CRC32VerifyingInputStream(InputStream in, long size, int expectedCrc32)`
    `CRC32VerifyingInputStream(InputStream in, long size, long expectedCrc32)`

  - ### Method Summary

    - ### Methods inherited from class org.apache.commons.compress.utils.ChecksumVerifyingInputStream

      `close, read, read, read, skip`

    - ### Methods inherited from class java.io.InputStream

      `available, mark, markSupported, reset`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### CRC32VerifyingInputStream

          public CRC32VerifyingInputStream(InputStream in,
                                   long size,
                                   int expectedCrc32)

    - #### CRC32VerifyingInputStream

          public CRC32VerifyingInputStream(InputStream in,
                                   long size,
                                   long expectedCrc32)

      Since:
        1.7

Copyright © 2014 The Apache Software Foundation. All rights reserved.