C# Class Lucene.Net.QueryParsers.Surround.Parser.FastCharStream

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 Lucene.Net.Analysis.Token API.

Inheritance: ICharStream
ファイルを表示 Open project: apache/lucenenet

Public Methods

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

Constructs from a System.IO.TextReader.

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 System.IO.TextReader.
public FastCharStream ( System r ) : System
r System
return System

GetSuffix() public method

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

ReadChar() public method

public ReadChar ( ) : char
return char