Class Crc32ChecksumValidatingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
software.amazon.awssdk.core.io.SdkFilterInputStream
software.amazon.awssdk.core.internal.util.Crc32ChecksumValidatingInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Releasable
Wraps the provided input stream with a 
Crc32ChecksumCalculatingInputStream and after the stream is closed
 will validate the calculated checksum against the actual checksum.- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class software.amazon.awssdk.core.io.SdkFilterInputStreamavailable, mark, markSupported, release, reset, skipMethods inherited from class java.io.FilterInputStreamread
- 
Constructor Details- 
Crc32ChecksumValidatingInputStream- Parameters:
- in- Input stream to content.
- expectedChecksum- Expected CRC32 checksum returned by the service.
 
 
- 
- 
Method Details- 
closeCloses the underlying stream and validates the calculated checksum against the expected.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- SdkFilterInputStream
- Throws:
- Crc32MismatchException- If the calculated CRC32 checksum does not match the expected.
- IOException
 
- 
read- Overrides:
- readin class- SdkFilterInputStream
- Throws:
- IOException
 
- 
read- Overrides:
- readin class- SdkFilterInputStream
- Throws:
- IOException
 
 
-