public class Crc32ChecksumValidatingInputStream extends SdkFilterInputStream
Crc32ChecksumCalculatingInputStreamand after the stream is closed will validate the calculated checksum against the actual checksum.
|Constructor and Description|
|Modifier and Type||Method and Description|
Closes the underlying stream and validates the calculated checksum against the expected.
available, mark, markSupported, read, read, release, reset, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Crc32ChecksumValidatingInputStream(InputStream in, long expectedChecksum)
in- Input stream to content.
expectedChecksum- Expected CRC32 checksum returned by the service.
public void close() throws IOException