public final class AnyCharTokenizer
extends org.apache.lucene.analysis.Tokenizer
| Constructor and Description |
|---|
AnyCharTokenizer()
Construct a new AnyCharTokenizer.
|
AnyCharTokenizer(org.apache.lucene.util.AttributeFactory factory)
Construct a new AnyCharTokenizer using a given
AttributeFactory. |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
protected boolean |
isTokenChar(int c)
Collects any characters.
|
protected int |
normalize(int c) |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic AnyCharTokenizer()
public AnyCharTokenizer(org.apache.lucene.util.AttributeFactory factory)
AttributeFactory.factory - the attribute factory to use for this Tokenizerprotected boolean isTokenChar(int c)
protected int normalize(int c)
public boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void end()
throws IOException
end in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenizerIOException