Save This Page
Home » lucene-3.0.1-src » org.apache.lucene.queryParser.standard.parser » [javadoc | source]
org.apache.lucene.queryParser.standard.parser
public class: JavaCharStream [javadoc | source]
java.lang.Object
   org.apache.lucene.queryParser.standard.parser.JavaCharStream
An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
Field Summary
public static final  boolean staticFlag    Whether parser is static. 
public  int bufpos    Position in buffer. 
 int bufsize     
 int available     
 int tokenBegin     
protected  int[] bufline     
protected  int[] bufcolumn     
protected  int column     
protected  int line     
protected  boolean prevCharIsCR     
protected  boolean prevCharIsLF     
protected  Reader inputStream     
protected  char[] nextCharBuf     
protected  char[] buffer     
protected  int maxNextCharInd     
protected  int nextCharInd     
protected  int inBuf     
protected  int tabSize     
Constructor:
 public JavaCharStream(Reader dstream) 
    Constructor.
 public JavaCharStream(InputStream dstream) 
    Constructor.
 public JavaCharStream(InputStream dstream,
    String encoding) throws UnsupportedEncodingException 
    Constructor.
 public JavaCharStream(Reader dstream,
    int startline,
    int startcolumn) 
    Constructor.
 public JavaCharStream(InputStream dstream,
    int startline,
    int startcolumn) 
    Constructor.
 public JavaCharStream(Reader dstream,
    int startline,
    int startcolumn,
    int buffersize) 
    Constructor.
 public JavaCharStream(InputStream dstream,
    int startline,
    int startcolumn,
    int buffersize) 
    Constructor.
 public JavaCharStream(InputStream dstream,
    String encoding,
    int startline,
    int startcolumn) throws UnsupportedEncodingException 
    Constructor.
 public JavaCharStream(InputStream dstream,
    String encoding,
    int startline,
    int startcolumn,
    int buffersize) throws UnsupportedEncodingException 
    Constructor.
Method from org.apache.lucene.queryParser.standard.parser.JavaCharStream Summary:
AdjustBuffSize,   BeginToken,   Done,   ExpandBuff,   FillBuff,   GetImage,   GetSuffix,   ReInit,   ReInit,   ReInit,   ReInit,   ReInit,   ReInit,   ReInit,   ReInit,   ReInit,   ReadByte,   UpdateLineColumn,   adjustBeginLineColumn,   backup,   getBeginColumn,   getBeginLine,   getColumn,   getEndColumn,   getEndLine,   getLine,   getTabSize,   hexval,   readChar,   setTabSize
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.queryParser.standard.parser.JavaCharStream Detail:
 protected  void AdjustBuffSize() 
 public char BeginToken() throws IOException 
 public  void Done() 
    Set buffers back to null when finished.
 protected  void ExpandBuff(boolean wrapAround) 
 protected  void FillBuff() throws IOException 
 public String GetImage() 
 public char[] GetSuffix(int len) 
 public  void ReInit(Reader dstream) 
    Reinitialise.
 public  void ReInit(InputStream dstream) 
    Reinitialise.
 public  void ReInit(InputStream dstream,
    String encoding) throws UnsupportedEncodingException 
    Reinitialise.
 public  void ReInit(Reader dstream,
    int startline,
    int startcolumn) 
    Reinitialise.
 public  void ReInit(InputStream dstream,
    int startline,
    int startcolumn) 
    Reinitialise.
 public  void ReInit(Reader dstream,
    int startline,
    int startcolumn,
    int buffersize) 
    Reinitialise.
 public  void ReInit(InputStream dstream,
    int startline,
    int startcolumn,
    int buffersize) 
    Reinitialise.
 public  void ReInit(InputStream dstream,
    String encoding,
    int startline,
    int startcolumn) throws UnsupportedEncodingException 
    Reinitialise.
 public  void ReInit(InputStream dstream,
    String encoding,
    int startline,
    int startcolumn,
    int buffersize) throws UnsupportedEncodingException 
    Reinitialise.
 protected char ReadByte() throws IOException 
 protected  void UpdateLineColumn(char c) 
 public  void adjustBeginLineColumn(int newLine,
    int newCol) 
    Method to adjust line and column numbers for the start of a token.
 public  void backup(int amount) 
    Retreat.
 public int getBeginColumn() 
 public int getBeginLine() 
 public int getColumn() 
Deprecated!
 public int getEndColumn() 
    Get end column.
 public int getEndLine() 
    Get end line.
 public int getLine() 
Deprecated!
 protected int getTabSize(int i) 
 static final int hexval(char c) throws IOException 
 public char readChar() throws IOException 
    Read a character.
 protected  void setTabSize(int i)