public class Tokenizer extends Object
Constructor and Description |
---|
Tokenizer() |
Modifier and Type | Method and Description |
---|---|
String[] |
quotedWhiteSpaceTokenizer(String value)
Splits a given string into tokens based on white space.
|
String[] |
simpleWhiteSpaceTokenizer(String value)
Splits a given string into tokens based on white space.
|
String[] |
tokenizeWithPattern(String regexPattern,
String value)
Split the value string with a custom regex pattern.
|
public String[] simpleWhiteSpaceTokenizer(String value)
The "dirty red" fish was here.
the tokens would be
value
- The String to be tokenized.public String[] quotedWhiteSpaceTokenizer(String value)
The "dirty red" fish was here.
the tokens would be
value
- the text line that should be split into tokens.public String[] tokenizeWithPattern(String regexPattern, String value)
regexPattern
- The RegEx pattern as Stringvalue
- the value to be split by the RegEx pattern.Copyright © 2017 Jason "JRSofty" Reed. All rights reserved.