Save This Page
Home » lucene-3.0.1-src » org.apache » lucene » queryParser » [javadoc | source]
public final class: FastCharStream [javadoc | source]

All Implemented Interfaces:

An efficient implementation of JavaCC's CharStream interface.

Note that this does not do line-number counting, but instead keeps track of the character position of the token in the input, as required by Lucene's org.apache.lucene.analysis.Token API.
Field Summary
 char[] buffer     
 int bufferLength     
 int bufferPosition     
 int tokenStart     
 int bufferStart     
 Reader input     
 public FastCharStream(Reader r) 
    Constructs from a Reader.
Method from org.apache.lucene.queryParser.FastCharStream Summary:
BeginToken,   Done,   GetImage,   GetSuffix,   backup,   getBeginColumn,   getBeginLine,   getColumn,   getEndColumn,   getEndLine,   getLine,   readChar
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.queryParser.FastCharStream Detail:
 public final char BeginToken() throws IOException 
 public final  void Done() 
 public final String GetImage() 
 public final char[] GetSuffix(int len) 
 public final  void backup(int amount) 
 public final int getBeginColumn() 
 public final int getBeginLine() 
 public final int getColumn() 
 public final int getEndColumn() 
 public final int getEndLine() 
 public final int getLine() 
 public final char readChar() throws IOException