|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.eos.analyzer.TokenFilter net.sf.eos.analyzer.WhitespaceTokenizer
public final class WhitespaceTokenizer
Tokenized a sequence of chars at whitespaces. Wrapper around Lucenes
WhitespaceTokenizer
.
Constructor Summary | |
---|---|
WhitespaceTokenizer()
Creates a new instance. |
|
WhitespaceTokenizer(CharSequence text)
Creates a new instance for a char sequence. |
|
WhitespaceTokenizer(Tokenizer source)
Creates a new instance. |
Method Summary | |
---|---|
protected Tokenizer |
getSource()
Return value may be null . |
Token |
next()
Implementations should use TokenFilter.getSource() to fetch the source
Tokenizer an handle the resulting Token . |
void |
reset(CharSequence input)
Inits the tokenizer with new input data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WhitespaceTokenizer(Tokenizer source)
source
- a source filterpublic WhitespaceTokenizer()
public WhitespaceTokenizer(CharSequence text)
text
- the sequence to tokenizeMethod Detail |
---|
public Token next() throws TokenizerException
TokenFilter
TokenFilter.getSource()
to fetch the source
Tokenizer
an handle the resulting Token
.
next
in interface Tokenizer
next
in class TokenFilter
null
TokenizerException
- if an error occurspublic void reset(CharSequence input) throws TokenizerException
ResettableTokenizer
reset
in interface ResettableTokenizer
input
- represents new input data for the tokenizer.
TokenizerException
protected Tokenizer getSource()
null
.
getSource
in class TokenFilter
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |