Tokenizer that utilizes a regex to find words. It applies a regex (\w)+ over the input text to extract words from a given
character sequence.
Instances of this class are immutable and are safe for use by multiple concurrent threads.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final RegexTokenizer | INSTANCE
The singleton instance. |
| private static final Pattern | PATTERN
The whitespace pattern. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CharSequence[] | apply(final CharSequence text)
Implements java. Applies this function to the given argument. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final RegexTokenizer INSTANCE The singleton instance. | |
| PATTERN | back to summary |
|---|---|
| private static final Pattern PATTERN The whitespace pattern. | |
| RegexTokenizer | back to summary |
|---|---|
| pack-priv RegexTokenizer() | |
| apply | back to summary |
|---|---|
| public CharSequence[] apply(final CharSequence text) Implements java. Doc from java. Applies this function to the given argument.
| |