kmy.jint.io
Class JintReader

java.lang.Object
  |
  +--java.io.Reader
        |
        +--kmy.jint.io.JintReader

public class JintReader
extends java.io.Reader


Inner Class Summary
(package private) static interface JintReader.IOExceptionWrapper
           
 class JintReader.Mark
           
 
Field Summary
(package private)  char[] buffer
           
(package private) static int bufSize
           
(package private) static boolean debug
           
(package private)  boolean dirty
           
(package private)  boolean eof
           
(package private)  int head
           
private  Regex ignoreRegex
           
(package private)  java.io.Reader in
           
(package private)  int markCount
           
(package private)  RegexRefiller refiller
           
(package private)  int tail
           
 
Fields inherited from class java.io.Reader
lock, maxSkipBufferSize, skipBuffer
 
Constructor Summary
JintReader(java.io.Reader r)
           
JintReader(java.lang.String fileName)
           
 
Method Summary
(package private)  java.lang.String bufRep()
           
 void close()
           
 boolean eof()
           
(package private)  int fillBufferIfHaveTo(int h)
           
 Regex getIgnore()
           
 JintReader.Mark mark()
           
 void mark(int nChars)
           
 boolean markSupported()
           
 boolean matchToken(Regex regex)
           
 int read()
           
 int read(char[] buf, int off, int len)
           
 boolean read(Regex regex)
           
 boolean read(java.lang.String string)
           
 CharString readDelimitedToken(Regex regex)
           
 boolean ready()
           
 void reset()
           
 void reset(JintReader.Mark m)
           
 void setIgnore(Regex r)
           
 long skip(long nChars)
           
(package private)  void skipIgnore()
           
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

in

java.io.Reader in

buffer

char[] buffer

head

int head

tail

int tail

markCount

int markCount

dirty

boolean dirty

eof

boolean eof

ignoreRegex

private Regex ignoreRegex

debug

static final boolean debug

bufSize

static int bufSize

refiller

RegexRefiller refiller
Constructor Detail

JintReader

public JintReader(java.io.Reader r)
           throws java.io.IOException

JintReader

public JintReader(java.lang.String fileName)
           throws java.io.IOException
Method Detail

bufRep

java.lang.String bufRep()

fillBufferIfHaveTo

int fillBufferIfHaveTo(int h)
                 throws java.io.IOException

matchToken

public boolean matchToken(Regex regex)
                   throws java.io.IOException

skipIgnore

void skipIgnore()
          throws java.io.IOException

setIgnore

public void setIgnore(Regex r)

getIgnore

public Regex getIgnore()

readDelimitedToken

public CharString readDelimitedToken(Regex regex)
                              throws java.io.IOException

read

public boolean read(Regex regex)
             throws java.io.IOException

read

public boolean read(java.lang.String string)
             throws java.io.IOException

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.Reader

read

public int read(char[] buf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.Reader

skip

public long skip(long nChars)
          throws java.io.IOException
Overrides:
skip in class java.io.Reader

ready

public boolean ready()
              throws java.io.IOException
Overrides:
ready in class java.io.Reader

eof

public boolean eof()

mark

public JintReader.Mark mark()

reset

public void reset(JintReader.Mark m)

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.Reader

mark

public void mark(int nChars)
Overrides:
mark in class java.io.Reader

reset

public void reset()
Overrides:
reset in class java.io.Reader

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.Reader