| java.lang.Object org.apache.lucene.analysis.TokenStream org.apache.lucene.analysis.Tokenizer
All known Subclasses: org.apache.lucene.analysis.standard.StandardTokenizer, org.apache.lucene.analysis.cn.ChineseTokenizer, org.apache.lucene.analysis.cjk.CJKTokenizer, org.apache.lucene.analysis.SinkTokenizer, org.apache.lucene.analysis.CharTokenizer, org.apache.lucene.wikipedia.analysis.WikipediaTokenizer, org.apache.lucene.analysis.ngram.NGramTokenizer, org.apache.lucene.analysis.KeywordTokenizer, org.apache.lucene.analysis.ngram.EdgeNGramTokenizer,
Field Summary | |
protected Reader | input The text source for this Tokenizer. |
Constructor Summary | |
protected | Tokenizer() Construct a tokenizer with null input. | protected | Tokenizer(Reader input) Construct a token stream processing the given input. |
Method Summary | |
public void | close() By default, closes the input Reader. | public void | reset(Reader input) Expert: Reset the tokenizer to a new reader. |
input | protected Reader input(Code) | | The text source for this Tokenizer.
|
Tokenizer | protected Tokenizer()(Code) | | Construct a tokenizer with null input.
|
Tokenizer | protected Tokenizer(Reader input)(Code) | | Construct a token stream processing the given input.
|
close | public void close() throws IOException(Code) | | By default, closes the input Reader.
|
reset | public void reset(Reader input) throws IOException(Code) | | 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.
|
|
|