public final class UAX29URLEmailTokenizer extends Tokenizer
You must specify the required Version
compatibility when creating UAX29URLEmailTokenizer:
AttributeSource.AttributeFactory, AttributeSource.State| Modifier and Type | Field and Description |
|---|---|
static int |
ALPHANUM |
static int |
EMAIL |
static int |
HANGUL |
static int |
HIRAGANA |
static int |
IDEOGRAPHIC |
static int |
KATAKANA |
static int |
NUM |
static int |
SOUTHEAST_ASIAN |
static String[] |
TOKEN_TYPES
String token types that correspond to token type int constants
|
static int |
URL |
| Constructor and Description |
|---|
UAX29URLEmailTokenizer(Version matchVersion,
AttributeSource.AttributeFactory factory,
Reader input)
Creates a new UAX29URLEmailTokenizer with a given
AttributeSource.AttributeFactory |
UAX29URLEmailTokenizer(Version matchVersion,
Reader input)
Creates a new instance of the UAX29URLEmailTokenizer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
int |
getMaxTokenLength() |
boolean |
incrementToken() |
void |
reset() |
void |
setMaxTokenLength(int length)
Set the max allowed token length.
|
close, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreStatepublic static final int ALPHANUM
public static final int NUM
public static final int SOUTHEAST_ASIAN
public static final int IDEOGRAPHIC
public static final int HIRAGANA
public static final int KATAKANA
public static final int HANGUL
public static final int URL
public static final int EMAIL
public static final String[] TOKEN_TYPES
public UAX29URLEmailTokenizer(Version matchVersion, Reader input)
input to the newly created JFlex scanner.input - The input readerpublic UAX29URLEmailTokenizer(Version matchVersion, AttributeSource.AttributeFactory factory, Reader input)
AttributeSource.AttributeFactorypublic void setMaxTokenLength(int length)
public int getMaxTokenLength()
setMaxTokenLength(int)public final boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic final void end()
end in class TokenStreampublic void reset()
throws IOException
reset in class TokenStreamIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.