@NotThreadSafe public abstract class ProgressInputStream extends SdkFilterInputStream
Constructor and Description |
---|
ProgressInputStream(InputStream is,
ProgressListener listener) |
ProgressInputStream(InputStream is,
ProgressListener listener,
int notifyThresHold) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ProgressListener |
getListener() |
InputStream |
getWrappedInputStream() |
static InputStream |
inputStreamForRequest(InputStream is,
AmazonWebServiceRequest req)
Deprecated.
|
static InputStream |
inputStreamForRequest(InputStream is,
ProgressListener progressListener) |
static InputStream |
inputStreamForResponse(InputStream is,
AmazonWebServiceRequest req)
Returns an input stream for response progress tracking purposes.
|
static InputStream |
inputStreamForResponse(InputStream is,
ProgressListener progressListener)
Returns an input stream for response progress tracking purposes.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
abort, available, getDelegateStream, isMetricActivated, mark, markSupported, release, skip
read
public ProgressInputStream(InputStream is, ProgressListener listener)
public ProgressInputStream(InputStream is, ProgressListener listener, int notifyThresHold)
@Deprecated public static InputStream inputStreamForRequest(InputStream is, AmazonWebServiceRequest req)
is
- the request content input streampublic static InputStream inputStreamForRequest(InputStream is, ProgressListener progressListener)
is
- the request content input streamprogressListener
- Optional progress listenerpublic static InputStream inputStreamForResponse(InputStream is, AmazonWebServiceRequest req)
is
- the response content input streampublic static InputStream inputStreamForResponse(InputStream is, ProgressListener progressListener)
is
- the response content input streamprogressListener
- Optional progress listenerpublic int read() throws IOException
read
in class SdkFilterInputStream
IOException
public void reset() throws IOException
reset
in class SdkFilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class SdkFilterInputStream
IOException
public final InputStream getWrappedInputStream()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class SdkFilterInputStream
IOException
public final ProgressListener getListener()