org.apache.lucene.analysis
public class CachingTokenFilter extends TokenFilter
TokenStream.reset(), which repositions the
stream to the first Token.input| Constructor and Description |
|---|
CachingTokenFilter(TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
Token |
next()
Returns the next token in the stream, or null at EOS.
|
void |
reset()
Resets this stream to the beginning.
|
closenextpublic CachingTokenFilter(TokenStream input)
public Token next() throws IOException
TokenStreamTokenStream.next(Token) instead..next in class TokenStreamIOExceptionpublic void reset()
throws IOException
TokenStreamreset in class TokenStreamIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.