Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » analysis » [javadoc | source]
org.apache.lucene.analysis
public final class: CharReader [javadoc | source]
java.lang.Object
   java.io.Reader
      org.apache.lucene.analysis.CharStream
         org.apache.lucene.analysis.CharReader

All Implemented Interfaces:
    Closeable, Readable

CharReader is a Reader wrapper. It reads chars from Reader and outputs CharStream , defining an identify function #correctOffset method that simply returns the provided offset.
Field Summary
protected  Reader input     
Fields inherited from java.io.Reader:
lock
Method from org.apache.lucene.analysis.CharReader Summary:
close,   correctOffset,   get,   mark,   markSupported,   read,   reset
Methods from org.apache.lucene.analysis.CharStream:
correctOffset
Methods from java.io.Reader:
close,   mark,   markSupported,   read,   read,   read,   read,   ready,   reset,   skip
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.CharReader Detail:
 public  void close() throws IOException 
 public int correctOffset(int currentOff) 
 public static CharStream get(Reader input) 
 public  void mark(int readAheadLimit) throws IOException 
 public boolean markSupported() 
 public int read(char[] cbuf,
    int off,
    int len) throws IOException 
 public  void reset() throws IOException