C# Class Lucene.Net.Analysis.CharFilters.MappingCharFilter

Simplistic CharFilter that applies the mappings contained in a NormalizeCharMap to the character stream, and correcting the resulting changes to the offsets. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string.
Inheritance: Lucene.Net.Analysis.CharFilters.BaseCharFilter
ファイルを表示 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
MappingCharFilter ( NormalizeCharMap normMap, TextReader @in ) : Lucene.Net.Analysis.Util

Default constructor that takes a TextReader.

Read ( ) : int
Read ( char cbuf, int off, int len ) : int
Reset ( ) : void

Private Methods

Method Description
GetBufferedReader ( TextReader reader ) : BufferedCharFilter

LUCENENET: Copied this method from the WordlistLoader class - this class requires readers with a Reset() method (which .NET readers don't support). So, we use the BufferedCharFilter (which is similar to Java BufferedReader) as a wrapper for whatever reader the user passes (unless it is already a BufferedCharFilter).

Method Details

MappingCharFilter() public method

Default constructor that takes a TextReader.
public MappingCharFilter ( NormalizeCharMap normMap, TextReader @in ) : Lucene.Net.Analysis.Util
normMap NormalizeCharMap
@in System.IO.TextReader
return Lucene.Net.Analysis.Util

Read() public method

public Read ( ) : int
return int

Read() public method

public Read ( char cbuf, int off, int len ) : int
cbuf char
off int
len int
return int

Reset() public method

public Reset ( ) : void
return void