com.amazonaws.util
Class CRC32ChecksumCalculatingInputStream
java.lang.Object
   SdkFilterInputStream
SdkFilterInputStream
       com.amazonaws.util.CRC32ChecksumCalculatingInputStream
com.amazonaws.util.CRC32ChecksumCalculatingInputStream
- public class CRC32ChecksumCalculatingInputStream 
- extends SdkFilterInputStream
Simple InputStream wrapper that examines the wrapped stream's contents as
 they are read and calculates and CRC32 checksum.
 
| Method Summary | 
|  long | getCRC32Checksum()
 | 
|  int | read()
 | 
|  int | read(byte[] b,
     int off,
     int len)
 | 
|  void | reset()Resets the wrapped input stream and the CRC32 computation.
 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CRC32ChecksumCalculatingInputStream
public CRC32ChecksumCalculatingInputStream(java.io.InputStream in)
getCRC32Checksum
public long getCRC32Checksum()
- 
 
reset
public void reset()
           throws java.io.IOException
- Resets the wrapped input stream and the CRC32 computation.
 
- 
- Throws:
- java.io.IOException
- See Also:
- InputStream.reset()
 
read
public int read()
         throws java.io.IOException
- 
- Throws:
- java.io.IOException
- See Also:
- InputStream.read()
 
read
public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
- 
- Throws:
- java.io.IOException
- See Also:
- InputStream.read(byte[], int, int)
 
                Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.