com.infoengine.modeler.data
Class CharAtATimeReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.BufferedReader
          extended bycom.infoengine.modeler.data.CharAtATimeReader

public class CharAtATimeReader
extends BufferedReader


Field Summary
(package private)  long charsRead
           
(package private)  long length
           
(package private)  long mark
           
(package private)  int[] peek
           
(package private)  int peekIndex
           
 
Fields inherited from class java.io.BufferedReader
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CharAtATimeReader(Reader r, long length)
           
 
Method Summary
 long getCharsRead()
           
 void mark()
           
 String peek(int nChars)
           
 int read()
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, readLine, ready
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

long length

charsRead

long charsRead

mark

long mark

peek

int[] peek

peekIndex

int peekIndex
Constructor Detail

CharAtATimeReader

public CharAtATimeReader(Reader r,
                         long length)
Method Detail

getCharsRead

public long getCharsRead()

mark

public void mark()
          throws IllegalArgumentException,
                 IOException
Throws:
IllegalArgumentException
IOException

read

public int read()
         throws IOException
Throws:
IOException

reset

public void reset()
           throws IOException
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Throws:
IOException

peek

public String peek(int nChars)
            throws IOException
Throws:
IOException