Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Lucene.Net.Analysis.WhitespaceTokenizer Class Reference

A WhitespaceTokenizer is a tokenizer that divides text at whitespace. Adjacent sequences of non-Whitespace characters form tokens. More...

Inherits Lucene.Net.Analysis.CharTokenizer.

Public Member Functions

 WhitespaceTokenizer (System.IO.TextReader @in)
 Construct a new WhitespaceTokenizer.
 
 WhitespaceTokenizer (AttributeSource source, System.IO.TextReader @in)
 Construct a new WhitespaceTokenizer using a given AttributeSource.
 
 WhitespaceTokenizer (AttributeFactory factory, System.IO.TextReader @in)
 Construct a new WhitespaceTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.
 
- Public Member Functions inherited from Lucene.Net.Analysis.CharTokenizer
override bool IncrementToken ()
 Consumers (i.e., IndexWriter) use this method to advance the stream to the next token. Implementing classes must implement this method and update the appropriate Util.Attributes with the attributes of the next token.
 
override void End ()
 This method is called by the consumer after the last token has been consumed, after IncrementToken returned false (using the new TokenStream API). Streams implementing the old API should upgrade to use this feature. This method can be used to perform any end-of-stream operations, such as setting the final offset of a stream. The final offset of a stream might differ from the offset of the last token eg in case one or more whitespaces followed after the last token, but a WhitespaceTokenizer was used.
 
override void Reset (System.IO.TextReader input)
 Expert: Reset the tokenizer to a new reader. Typically, an analyzer (in its reusableTokenStream method) will use this to re-use a previously created tokenizer.
 

Additional Inherited Members

- Protected Member Functions inherited from Lucene.Net.Analysis.CharTokenizer
 CharTokenizer (System.IO.TextReader input)
 
 CharTokenizer (AttributeSource source, System.IO.TextReader input)
 
 CharTokenizer (AttributeFactory factory, System.IO.TextReader input)
 
- Properties inherited from Lucene.Net.Util.AttributeSource
virtual AttributeFactory Factory [get]
 Returns the used AttributeFactory.
 
virtual bool HasAttributes [get]
 Returns true, iff this AttributeSource has any attributes
 

Detailed Description

A WhitespaceTokenizer is a tokenizer that divides text at whitespace. Adjacent sequences of non-Whitespace characters form tokens.

Definition at line 27 of file WhitespaceTokenizer.cs.

Constructor & Destructor Documentation

Lucene.Net.Analysis.WhitespaceTokenizer.WhitespaceTokenizer ( System.IO.TextReader @  in)

Construct a new WhitespaceTokenizer.

Definition at line 30 of file WhitespaceTokenizer.cs.

Lucene.Net.Analysis.WhitespaceTokenizer.WhitespaceTokenizer ( AttributeSource  source,
System.IO.TextReader @  in 
)

Construct a new WhitespaceTokenizer using a given AttributeSource.

Definition at line 36 of file WhitespaceTokenizer.cs.

Lucene.Net.Analysis.WhitespaceTokenizer.WhitespaceTokenizer ( AttributeFactory  factory,
System.IO.TextReader @  in 
)

Construct a new WhitespaceTokenizer using a given Lucene.Net.Util.AttributeSource.AttributeFactory.

Definition at line 42 of file WhitespaceTokenizer.cs.


The documentation for this class was generated from the following file: