Xj3D VRML/X3D Code API

org.web3d.vrml.io
Class ReportableReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.FilterReader
          extended byorg.web3d.vrml.io.ReportableReader

public class ReportableReader
extends java.io.FilterReader

Listens for updates to read status on a stream.

Version:
$Revision: 1.2 $
Author:
Alan Hudson

Field Summary
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ReportableReader(boolean relative, int updateSize, ReadProgressListener listener, java.io.Reader in)
          Constructor.
 
Method Summary
 int read()
           
 int read(char[] b)
           
 int read(char[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportableReader

public ReportableReader(boolean relative,
                        int updateSize,
                        ReadProgressListener listener,
                        java.io.Reader 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(char[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(char[] 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