org.apache.lucene.analysis
Class TokenFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
- Direct Known Subclasses:
- CachingTokenFilter, ISOLatin1AccentFilter, LengthFilter, LowerCaseFilter, PorterStemFilter, StandardFilter, StopFilter, TeeTokenFilter
public abstract class TokenFilter
- extends TokenStream
A TokenFilter is a TokenStream whose input is another token stream.
This is an abstract class.
NOTE: subclasses must override at least one of TokenStream.next()
or TokenStream.next(Token)
.
Constructor Summary |
protected |
TokenFilter(TokenStream input)
Construct a token stream filtering the given input. |
Method Summary |
void |
close()
Close the input TokenStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected TokenStream input
- The source of tokens for this filter.
TokenFilter
protected TokenFilter(TokenStream input)
- Construct a token stream filtering the given input.
close
public void close()
throws IOException
- Close the input TokenStream.
- Overrides:
close
in class TokenStream
- Throws:
IOException
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.