ProgressReportingInputStream@Deprecated public class ProgressReportingInputStream extends SdkFilterInputStream
in| Constructor and Description |
|---|
ProgressReportingInputStream(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. |
isMetricActivatedavailable, mark, markSupported, read, reset, skippublic ProgressReportingInputStream(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 IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2016. All rights reserved.