|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.Tokenizer
public abstract class Tokenizer
A Tokenizer is a TokenStream whose input is a Reader.
This is an abstract class.
NOTE: subclasses must override TokenStream.next(Token)
. It's
also OK to instead override TokenStream.next()
but that
method is now deprecated in favor of TokenStream.next(Token)
.
NOTE: subclasses overriding TokenStream.next(Token)
must
call Token.clear()
.
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 | |
---|---|
void |
close()
By default, closes the input Reader. |
void |
reset(Reader input)
Expert: Reset the tokenizer to a new reader. |
Methods inherited from class org.apache.lucene.analysis.TokenStream |
---|
next, next, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Reader input
Constructor Detail |
---|
protected Tokenizer()
protected Tokenizer(Reader input)
Method Detail |
---|
public void close() throws IOException
close
in class TokenStream
IOException
public void reset(Reader input) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |