public final class KeywordTokenizer extends Tokenizer
AttributeSource.State| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
Default read buffer size
|
DEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
KeywordTokenizer() |
KeywordTokenizer(AttributeFactory factory,
int bufferSize) |
KeywordTokenizer(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
close, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic static final int DEFAULT_BUFFER_SIZE
public KeywordTokenizer()
public KeywordTokenizer(int bufferSize)
public KeywordTokenizer(AttributeFactory factory, int bufferSize)
public final boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic final void end()
throws IOException
end in class TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class TokenizerIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.