C# Class Lucene.Net.Analysis.Tokenizer

A Tokenizer is a TokenStream whose input is a Reader.

this is an abstract class; subclasses must override #IncrementToken()

NOTE: Subclasses overriding #IncrementToken() must call AttributeSource#ClearAttributes() before setting attributes.

Inheritance: TokenStream
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Protected Properties

Свойство Type Description
input System.IO.TextReader

Méthodes publiques

Méthode Description
Dispose ( ) : void

{@inheritDoc}

NOTE: The default implementation closes the input Reader, so be sure to call super.close() when overriding this method.

Reset ( ) : void

Méthodes protégées

Méthode Description
CorrectOffset ( int currentOff ) : int

Return the corrected offset. If #input is a CharFilter subclass this method calls CharFilter#correctOffset, else returns currentOff.

Tokenizer ( AttributeFactory factory, TextReader input ) : System

Construct a token stream processing the given input using the given AttributeFactory.

Tokenizer ( TextReader input ) : System

Construct a token stream processing the given input.

Private Methods

Méthode Description
SetReaderTestPoint ( ) : bool

Method Details

CorrectOffset() protected méthode

Return the corrected offset. If #input is a CharFilter subclass this method calls CharFilter#correctOffset, else returns currentOff.
protected CorrectOffset ( int currentOff ) : int
currentOff int offset as seen in the output
Résultat int

Dispose() public méthode

{@inheritDoc}

NOTE: The default implementation closes the input Reader, so be sure to call super.close() when overriding this method.

public Dispose ( ) : void
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Tokenizer() protected méthode

Construct a token stream processing the given input using the given AttributeFactory.
protected Tokenizer ( AttributeFactory factory, TextReader input ) : System
factory AttributeFactory
input System.IO.TextReader
Résultat System

Tokenizer() protected méthode

Construct a token stream processing the given input.
protected Tokenizer ( TextReader input ) : System
input System.IO.TextReader
Résultat System

Property Details

input protected_oe property

The text source for this Tokenizer.
protected TextReader,System.IO input
Résultat System.IO.TextReader