public class S3ObjectInputStream
extends com.amazonaws.internal.SdkFilterInputStream
S3Object. In addition to
 the methods supplied by the InputStream class,
 S3ObjectInputStream supplies the abort() method, which will terminate
 an HTTP connection to the S3 object.| Constructor and Description | 
|---|
| S3ObjectInputStream(java.io.InputStream in) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | abort()Can be used to provide abortion logic prior to throwing the
 AbortedException. | 
| int | available()Returns the value of super.available() if the result is nonzero, or 1
 otherwise. | 
| int | read() | 
| int | read(byte[] b) | 
| int | read(byte[] b,
    int off,
    int len) | 
| void | reset() | 
public void abort()
abort in class com.amazonaws.internal.SdkFilterInputStreampublic int available()
              throws java.io.IOException
This is necessary to work around a known bug in GZIPInputStream.available(), which returns zero in some edge cases, causing file truncation.
Ref: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7036144
available in class com.amazonaws.internal.SdkFilterInputStreamjava.io.IOExceptionpublic int read()
         throws java.io.IOException
read in class com.amazonaws.internal.SdkFilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
         throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
read in class com.amazonaws.internal.SdkFilterInputStreamjava.io.IOExceptionpublic void reset()
           throws java.io.IOException
reset in class com.amazonaws.internal.SdkFilterInputStreamjava.io.IOExceptionCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.