@NotThreadSafe public abstract class ProgressInputStream extends com.amazonaws.internal.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)
Returns an input stream for request progress tracking purposes.
|
static InputStream |
inputStreamForResponse(InputStream is,
AmazonWebServiceRequest req)
Returns an input stream for response progress tracking purposes.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
available, isMetricActivated, mark, markSupported, release, skip
read
public ProgressInputStream(InputStream is, ProgressListener listener)
public ProgressInputStream(InputStream is, ProgressListener listener, int notifyThresHold)
public static InputStream inputStreamForRequest(InputStream is, AmazonWebServiceRequest req)
is
- the request content input streampublic static InputStream inputStreamForResponse(InputStream is, AmazonWebServiceRequest req)
is
- the response content input streampublic int read() throws IOException
read
in class com.amazonaws.internal.SdkFilterInputStream
IOException
public void reset() throws IOException
reset
in class com.amazonaws.internal.SdkFilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class com.amazonaws.internal.SdkFilterInputStream
IOException
public final InputStream getWrappedInputStream()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.amazonaws.internal.SdkFilterInputStream
IOException
public final ProgressListener getListener()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.