public final class UnicodeWhitespaceTokenizer extends CharTokenizer
For Unicode version see: UnicodeProps
AttributeSource.StateDEFAULT_MAX_WORD_LENDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
UnicodeWhitespaceTokenizer()
Construct a new UnicodeWhitespaceTokenizer.
|
UnicodeWhitespaceTokenizer(AttributeFactory factory)
Construct a new UnicodeWhitespaceTokenizer using a given
AttributeFactory. |
UnicodeWhitespaceTokenizer(AttributeFactory factory,
int maxTokenLen)
Construct a new UnicodeWhitespaceTokenizer using a given
AttributeFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isTokenChar(int c)
Collects only characters which do not satisfy Unicode's WHITESPACE property.
|
end, fromSeparatorCharPredicate, fromSeparatorCharPredicate, fromTokenCharPredicate, fromTokenCharPredicate, incrementToken, resetclose, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic UnicodeWhitespaceTokenizer()
public UnicodeWhitespaceTokenizer(AttributeFactory factory)
AttributeFactory.factory - the attribute factory to use for this Tokenizerpublic UnicodeWhitespaceTokenizer(AttributeFactory factory, int maxTokenLen)
AttributeFactory.factory - the attribute factory to use for this TokenizermaxTokenLen - maximum token length the tokenizer will emit.
Must be greater than 0 and less than MAX_TOKEN_LENGTH_LIMIT (1024*1024)IllegalArgumentException - if maxTokenLen is invalid.protected boolean isTokenChar(int c)
isTokenChar in class CharTokenizerCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.