Class CRC32VerifyingInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.utils.ChecksumVerifyingInputStream
org.apache.commons.compress.utils.CRC32VerifyingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A stream that verifies the CRC of the data read once the stream is
exhausted.
- Since:
- 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionCRC32VerifyingInputStream
(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, getBytesRemaining, read, read, read, skip
Methods inherited from class java.io.InputStream
available, mark, markSupported, readAllBytes, readNBytes, reset, transferTo
-
Constructor Details
-
CRC32VerifyingInputStream
- Parameters:
in
- the stream to wrapsize
- the of the stream's contentexpectedCrc32
- the expected checksum
-
CRC32VerifyingInputStream
- Parameters:
in
- the stream to wrapsize
- the of the stream's contentexpectedCrc32
- the expected checksum- Since:
- 1.7
-