Class CRC32VerifyingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.util.zip.CheckedInputStream
org.apache.commons.compress.utils.ChecksumVerifyingInputStream
org.apache.commons.compress.utils.CRC32VerifyingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Deprecated.
A stream that verifies the CRC of the data read once the stream is exhausted.
- Since:
- 1.6
- This class is not thread-safe
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionCRC32VerifyingInputStream
(InputStream in, long size, int expectedCrc32) Deprecated.No longer used.CRC32VerifyingInputStream
(InputStream in, long size, long expectedCrc32) Deprecated.Constructs a new instance. -
Method Summary
Methods inherited from class org.apache.commons.compress.utils.ChecksumVerifyingInputStream
getBytesRemaining, read, read
Methods inherited from class java.util.zip.CheckedInputStream
getChecksum, skip
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset
-
Constructor Details
-
CRC32VerifyingInputStream
Deprecated.No longer used.Constructs a new instance.- Parameters:
in
- the stream to wrapsize
- the of the stream's contentexpectedCrc32
- the expected checksum
-
CRC32VerifyingInputStream
Deprecated.Constructs a new instance.- Parameters:
in
- the stream to wrapsize
- the of the stream's contentexpectedCrc32
- the expected checksum- Since:
- 1.7
-
ChecksumInputStream
.