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.
|
close
next
public CachingTokenFilter(TokenStream input)
public Token next() throws IOException
TokenStream
TokenStream.next(Token)
instead..next
in class TokenStream
IOException
public void reset() throws IOException
TokenStream
reset
in class TokenStream
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.