org.web3d.vrml.io
Class ReportableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.web3d.vrml.io.ReportableInputStream
- public class ReportableInputStream
- extends java.io.FilterInputStream
Listens for updates to read status on a stream.
- Version:
- $Revision: 1.3 $
- Author:
- Alan Hudson
| Fields inherited from class java.io.FilterInputStream |
in |
|
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportableInputStream
public ReportableInputStream(boolean relative,
int updateSize,
ReadProgressListener listener,
java.io.InputStream in)
- Constructor.
- Parameters:
relative - Whether the update size is relative or absolute.updateSize - The size in bytes to issue updates.
This will be approximately honored.listener - The progress listenerin - The input source
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException
skip
public long skip(long n)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001 - 2005 Web3D Consortium