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