public abstract class TokenFilter extends TokenStream
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)
.
Modifier and Type | Field and Description |
---|---|
protected TokenStream |
input
The source of tokens for this filter.
|
Modifier | Constructor and Description |
---|---|
protected |
TokenFilter(TokenStream input)
Construct a token stream filtering the given input.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the input TokenStream.
|
void |
reset()
Reset the filter as well as the input TokenStream.
|
next, next
protected TokenStream input
protected TokenFilter(TokenStream input)
public void close() throws IOException
close
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenStream
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.