ProgressReportingInputStream@Deprecated public class ProgressReportingInputStream extends SdkFilterInputStream
| Constructor and Description |
|---|
ProgressReportingInputStream(java.io.InputStream in,
ProgressListener listener)
Deprecated.
Creates a new progress reporting input stream that simply wraps the
specified input stream and notifies the specified listener occasionally
about the number of bytes transferred.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
boolean |
getFireCompletedEvent()
Deprecated.
Returns whether this input stream should fire an event with code
ProgressEvent.COMPLETED_EVENT_CODE when this stream runs out of
data. |
int |
read()
Deprecated.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
void |
setFireCompletedEvent(boolean fireCompletedEvent)
Deprecated.
Sets whether this input stream should fire an event with code
ProgressEvent.COMPLETED_EVENT_CODE when this stream runs out of
data. |
abort, abortIfNeeded, available, isMetricActivated, mark, markSupported, reset, skippublic ProgressReportingInputStream(java.io.InputStream in,
ProgressListener listener)
in - The input stream to wrap.listener - The listener to notify about progress.public void setFireCompletedEvent(boolean fireCompletedEvent)
ProgressEvent.COMPLETED_EVENT_CODE when this stream runs out of
data. By default, completed events are not fired by this stream.fireCompletedEvent - Whether this input stream should fire an event to indicate
that the stream has been fully read.public boolean getFireCompletedEvent()
ProgressEvent.COMPLETED_EVENT_CODE when this stream runs out of
data. By default, completed events are not fired by this stream.public int read()
throws java.io.IOException
read in class SdkFilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class SdkFilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class SdkFilterInputStreamjava.io.IOException