oNVDL-20070517 API

com.thaiopensource.validate.auto
Class RewindableReader

java.lang.Object
  extended byjava.io.Reader
      extended bycom.thaiopensource.validate.auto.RewindableReader
All Implemented Interfaces:
Rewindable

public class RewindableReader
extends java.io.Reader
implements Rewindable

Rewindable implementation over a reader. Modified from RewindableInputStream by replacing the input stream with a reader.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
RewindableReader(java.io.Reader in)
           
 
Method Summary
 boolean canRewind()
           
 void close()
           
 int read()
           
 int read(char[] b, int off, int len)
           
 void rewind()
           
 void willNotRewind()
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewindableReader

public RewindableReader(java.io.Reader in)
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

rewind

public void rewind()
Specified by:
rewind in interface Rewindable

canRewind

public boolean canRewind()
Specified by:
canRewind in interface Rewindable

willNotRewind

public void willNotRewind()
Specified by:
willNotRewind in interface Rewindable

read

public int read()
         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

oNVDL-20070517 API

© Copyright SyncRO Soft SRL 2006-2007.