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 TextTokenizer
seq
- the character sequence to tokenize.public TextGranularity granurality()
TextGranularity.CHARACTER
.
Returns the text granularity of this tokenizer.granurality
in interface TextTokenizer
Copyright © 2007-2019. All Rights Reserved.