C# 클래스 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.
상속: Lucene.Net.Analysis.CharFilters.BaseCharFilter
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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).

메소드 상세

MappingCharFilter() 공개 메소드

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

Read() 공개 메소드

public Read ( ) : int
리턴 int

Read() 공개 메소드

public Read ( char cbuf, int off, int len ) : int
cbuf char
off int
len int
리턴 int

Reset() 공개 메소드

public Reset ( ) : void
리턴 void