org.apache.jackrabbit.core.query.lucene.fulltext
Class FastCharStream
java.lang.Object
org.apache.jackrabbit.core.query.lucene.fulltext.FastCharStream
- All Implemented Interfaces:
- org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
public final class FastCharStream
- extends Object
- implements org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
Modified version of org.apache.lucene.queryParser.FastCharStream
based on a String
input.
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 Token
API.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastCharStream
public FastCharStream(String input)
- Constructs from a String.
readChar
public char readChar()
throws IOException
- Specified by:
readChar
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
- Throws:
IOException
BeginToken
public char BeginToken()
throws IOException
- Specified by:
BeginToken
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
- Throws:
IOException
backup
public void backup(int amount)
- Specified by:
backup
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
GetImage
public String GetImage()
- Specified by:
GetImage
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
GetSuffix
public char[] GetSuffix(int len)
- Specified by:
GetSuffix
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
Done
public void Done()
- Specified by:
Done
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getColumn
public int getColumn()
- Specified by:
getColumn
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getLine
public int getLine()
- Specified by:
getLine
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interface org.apache.jackrabbit.core.query.lucene.fulltext.CharStream
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.