public class ProgressInputStream extends FilterInputStream
in
Constructor and Description |
---|
ProgressInputStream(InputStream in,
ProgressMonitor monitor)
Creates the Stream
|
ProgressInputStream(InputStream in,
ProgressMonitor monitor,
int position)
Creates the Stream
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCurrentPosition() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, mark, markSupported, reset
public ProgressInputStream(InputStream in, ProgressMonitor monitor)
in
- the underlying input streammonitor
- display the progress in this monitorpublic ProgressInputStream(InputStream in, ProgressMonitor monitor, int position)
in
- the underlying input streammonitor
- display the progress in this monitorposition
- start at this positionpublic 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 int getCurrentPosition()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)