public class TokenTypeSinkTokenizer extends SinkTokenizer
Token.type()
matches the passed in typeToMatch
then
add it to the sinkiter, lst
Constructor and Description |
---|
TokenTypeSinkTokenizer(int initCap,
java.lang.String typeToMatch) |
TokenTypeSinkTokenizer(java.util.List input,
java.lang.String typeToMatch) |
TokenTypeSinkTokenizer(java.lang.String typeToMatch) |
Modifier and Type | Method and Description |
---|---|
void |
add(Token t)
Override this method to cache only certain tokens, or new tokens based
on the old tokens.
|
close, getTokens, next, reset
next
public TokenTypeSinkTokenizer(java.lang.String typeToMatch)
public TokenTypeSinkTokenizer(int initCap, java.lang.String typeToMatch)
public TokenTypeSinkTokenizer(java.util.List input, java.lang.String typeToMatch)
public void add(Token t)
SinkTokenizer
add
in class SinkTokenizer
t
- The Token
to add to the sinkCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.