C# Класс Lucene.Net.Analysis.CharFilter.BaseCharFilter

Base utility class for implementing a CharFilter. You subclass this, and then record mappings by calling #addOffCorrectMap, and then invoke the correct method to correct an offset.
Наследование: CharFilter
Показать файл Открыть проект

Защищенные методы

Метод Описание
AddOffCorrectMap ( int off, int cumulativeDiff ) : void

Adds an offset correction mapping at the given output stream offset.

Assumption: the offset given with each successive call to this method will not be smaller than the offset given at the previous invocation.

BaseCharFilter ( TextReader @in ) : System.Diagnostics
Correct ( int currentOff ) : int

Retrieve the corrected offset.

Описание методов

AddOffCorrectMap() защищенный Метод

Adds an offset correction mapping at the given output stream offset.

Assumption: the offset given with each successive call to this method will not be smaller than the offset given at the previous invocation.

protected AddOffCorrectMap ( int off, int cumulativeDiff ) : void
off int The output stream offset at which to apply the correction
cumulativeDiff int The input offset is given by adding this /// to the output offset
Результат void

BaseCharFilter() защищенный Метод

protected BaseCharFilter ( TextReader @in ) : System.Diagnostics
@in System.IO.TextReader
Результат System.Diagnostics

Correct() защищенный Метод

Retrieve the corrected offset.
protected Correct ( int currentOff ) : int
currentOff int
Результат int