public class CRC32ChecksumCalculatingInputStream extends SdkFilterInputStream
Modifier and Type | Field and Description |
---|---|
private java.util.zip.CRC32 |
crc32
The CRC32 being calculated by this input stream
|
Constructor and Description |
---|
CRC32ChecksumCalculatingInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
long |
getCRC32Checksum() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset()
Resets the wrapped input stream and the CRC32 computation.
|
abort, abortIfNeeded, available, close, isMetricActivated, mark, markSupported, release, skip
private java.util.zip.CRC32 crc32
public CRC32ChecksumCalculatingInputStream(java.io.InputStream in)
public long getCRC32Checksum()
public void reset() throws java.io.IOException
reset
in class SdkFilterInputStream
java.io.IOException
InputStream.reset()
public int read() throws java.io.IOException
read
in class SdkFilterInputStream
java.io.IOException
InputStream.read()
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class SdkFilterInputStream
java.io.IOException
InputStream.read(byte[], int, int)