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. |
isMetricActivated
available, mark, markSupported, read, reset, skip
public 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 FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2016. All rights reserved.