public class Tokenizer extends Object
| Constructor and Description |
|---|
Tokenizer(List<String> delimiters)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrimTokens()
Tests whether this tokens trims the tokens returned by
tokenize(String) method. |
void |
setTrimTokens(boolean trimTokens)
Sets the trimTokens attribute.
|
Iterator<String> |
tokenize(String string)
Converts a string into tokens.
|
public boolean isTrimTokens()
tokenize(String) method.public void setTrimTokens(boolean trimTokens)
trimTokens - true to have the tokens returned by tokenize(String) method trimmed.
public Iterator<String> tokenize(String string)
string - The string to be split into tokens3.0.5