public class ProgressInputStream extends FilterInputStream
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProgressInputStream.ProgressInputStreamListener |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
END |
protected static int |
MAX |
protected static int |
START |
protected static int |
VALUE |
in| Constructor and Description |
|---|
ProgressInputStream(InputStream in,
int expectedLength,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProgressInputStreamListener(ProgressInputStream.ProgressInputStreamListener isl) |
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, mark, markSupportedprotected static final int MAX
protected static final int VALUE
protected static final int START
protected static final int END
public ProgressInputStream(InputStream in, int expectedLength, String name)
public void addProgressInputStreamListener(ProgressInputStream.ProgressInputStreamListener isl)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.