public final class TokenizerByChar extends Object implements TextTokenizer
This class is not synchronized.
| Constructor and Description |
|---|
TokenizerByChar()
Creates a new tokenizer.
|
| Modifier and Type | Method and Description |
|---|---|
TextGranularity |
granurality()
Always
TextGranularity.CHARACTER. |
List<TextEvent> |
tokenize(CharSequence seq)
Returns the list of
TextEvent corresponding to the specified character sequence. |
public List<TextEvent> tokenize(CharSequence seq)
TextEvent corresponding to the specified character sequence.tokenize in interface TextTokenizerseq - the character sequence to tokenize.public TextGranularity granurality()
TextGranularity.CHARACTER.
Returns the text granularity of this tokenizer.granurality in interface TextTokenizerCopyright © 2007-2022. All Rights Reserved.