| Constructor and Description |
|---|
ConstantTokenizer(String[] tokens,
String[] whitespaces) |
| Modifier and Type | Method and Description |
|---|---|
String |
nextToken()
Returns the next token in the stream, or
null if
there are no more tokens. |
String |
nextWhitespace()
Returns the next whitespace.
|
iterator, lastTokenEndPosition, lastTokenStartPosition, tokenize, tokenizepublic String nextToken()
Tokenizernull if
there are no more tokens. Flushes any whitespace that has
not been returned.public String nextWhitespace()
TokenizernextToken.
The default implementation in this class is to return
a single space, Strings.SINGLE_SPACE_STRING.
nextWhitespace in class TokenizerCopyright © 2016 Alias-i, Inc.. All rights reserved.