public final class WhitespaceTokenizer extends CharTokenizer
AttributeSource.StateDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
WhitespaceTokenizer()
Construct a new WhitespaceTokenizer.
|
WhitespaceTokenizer(AttributeFactory factory)
Construct a new WhitespaceTokenizer using a given
AttributeFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isTokenChar(int c)
Collects only characters which do not satisfy
Character.isWhitespace(int). |
end, incrementToken, normalize, resetclose, correctOffset, setReaderaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic WhitespaceTokenizer()
public WhitespaceTokenizer(AttributeFactory factory)
AttributeFactory.factory - the attribute factory to use for this Tokenizerprotected boolean isTokenChar(int c)
Character.isWhitespace(int).isTokenChar in class CharTokenizerCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.