C# Class Lucene.Net.QueryParsers.Flexible.Standard.Parser.FastCharStream

An efficient implementation of JavaCC's ICharStream 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.
Inheritance: ICharStream
显示文件 Open project: apache/lucenenet

Public Methods

Method Description
BackUp ( int amount ) : void
BeginToken ( ) : char
Done ( ) : void
FastCharStream ( TextReader r ) : System.IO

Constructs from a TextReader.

GetImage ( ) : string
GetSuffix ( int len ) : char[]
ReadChar ( ) : char

Private Methods

Method Description
Refill ( ) : void

Method Details

BackUp() public method

public BackUp ( int amount ) : void
amount int
return void

BeginToken() public method

public BeginToken ( ) : char
return char

Done() public method

public Done ( ) : void
return void

FastCharStream() public method

Constructs from a TextReader.
public FastCharStream ( TextReader r ) : System.IO
r System.IO.TextReader
return System.IO

GetImage() public method

public GetImage ( ) : string
return string

GetSuffix() public method

public GetSuffix ( int len ) : char[]
len int
return char[]

ReadChar() public method

public ReadChar ( ) : char
return char