public static class Analyzer.TokenStreamComponents extends Object
Tokenizer) and the outer end (sink), an
instance of TokenFilter which also serves as the
TokenStream returned by
Analyzer.tokenStream(String, Reader).| Modifier and Type | Field and Description |
|---|---|
protected TokenStream |
sink
Sink tokenstream, such as the outer tokenfilter decorating
the chain.
|
protected Tokenizer |
source
Original source of the tokens.
|
| Constructor and Description |
|---|
Analyzer.TokenStreamComponents(Tokenizer source)
Creates a new
Analyzer.TokenStreamComponents instance. |
Analyzer.TokenStreamComponents(Tokenizer source,
TokenStream result)
Creates a new
Analyzer.TokenStreamComponents instance. |
| Modifier and Type | Method and Description |
|---|---|
Tokenizer |
getTokenizer()
Returns the component's
Tokenizer |
TokenStream |
getTokenStream()
Returns the sink
TokenStream |
protected void |
setReader(Reader reader)
Resets the encapsulated components with the given reader.
|
protected final Tokenizer source
protected final TokenStream sink
public Analyzer.TokenStreamComponents(Tokenizer source, TokenStream result)
Analyzer.TokenStreamComponents instance.source - the analyzer's tokenizerresult - the analyzer's resulting token streampublic Analyzer.TokenStreamComponents(Tokenizer source)
Analyzer.TokenStreamComponents instance.source - the analyzer's tokenizerprotected void setReader(Reader reader) throws IOException
reader - a reader to reset the source componentIOException - if the component's reset method throws an IOExceptionpublic TokenStream getTokenStream()
TokenStreamTokenStreamCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.