public class CRC32ChecksumCalculatingInputStream extends SdkFilterInputStream
| Constructor and Description |
|---|
CRC32ChecksumCalculatingInputStream(java.io.InputStream in)
Constructor.
|
| 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, skippublic CRC32ChecksumCalculatingInputStream(java.io.InputStream in)
in - the input stream.public long getCRC32Checksum()
public void reset()
throws java.io.IOException
reset in class SdkFilterInputStreamjava.io.IOExceptionInputStream.reset()public int read()
throws java.io.IOException
read in class SdkFilterInputStreamjava.io.IOExceptionInputStream.read()public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class SdkFilterInputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)