util.ui.progress
Class ProgressInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
util.ui.progress.ProgressInputStream
- All Implemented Interfaces:
- Closeable
public class ProgressInputStream
- extends FilterInputStream
This inputstream can display the current position of a file using a
ProgressMonitor.
- Since:
- 2.7
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProgressInputStream
public ProgressInputStream(InputStream in,
ProgressMonitor monitor)
- Creates the Stream
- Parameters:
in - the underlying input streammonitor - display the progress in this monitor
ProgressInputStream
public ProgressInputStream(InputStream in,
ProgressMonitor monitor,
int position)
- Creates the Stream
- Parameters:
in - the underlying input streammonitor - display the progress in this monitorposition - start at this position
read
public int read()
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterInputStream
- Throws:
IOException
getCurrentPosition
public int getCurrentPosition()
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)