public class ProgressInputStream
extends org.apache.commons.io.input.ProxyInputStream
InputStream that counts the number of bytes read.in| Constructor and Description |
|---|
ProgressInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a
PropertyChangeListener
The listener gets notified as soon as the input stream is read. |
long |
getTotalNumBytesRead() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a
PropertyChangeListener
The listener gets notified as soon as the input stream is read. |
void |
reset() |
long |
skip(long n) |
public ProgressInputStream(InputStream in)
public long getTotalNumBytesRead()
public void addPropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
The listener gets notified as soon as the input stream is read.l - the PropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener l)
PropertyChangeListener
The listener gets notified as soon as the input stream is read.l - the PropertyChangeListenerpublic int read()
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void mark(int readlimit)
mark in class org.apache.commons.io.input.ProxyInputStreampublic void reset()
throws IOException
reset in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic boolean markSupported()
markSupported in class org.apache.commons.io.input.ProxyInputStreamCopyright © 2009–2021 Opencast Project. All rights reserved.