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, markSupported
protected 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 FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
Copyright © 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.