Xj3D VRML/X3D Code API

org.web3d.vrml.io
Class ReportableInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.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

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ReportableInputStream(boolean relative, int updateSize, ReadProgressListener listener, java.io.InputStream in)
          Constructor.
 
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
 

Constructor Detail

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 listener
in - The input source
Method Detail

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

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium