public class ProgressInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
ProgressInputStream(java.io.InputStream in,
ProgressMonitor monitor)
Creates the Stream
|
ProgressInputStream(java.io.InputStream in,
ProgressMonitor monitor,
int position)
Creates the Stream
|
public ProgressInputStream(java.io.InputStream in, ProgressMonitor monitor)
in
- the underlying input streammonitor
- display the progress in this monitorpublic ProgressInputStream(java.io.InputStream in, ProgressMonitor monitor, int position)
in
- the underlying input streammonitor
- display the progress in this monitorposition
- start at this positionpublic int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.IOException
public int getCurrentPosition()
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)