|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.topologi.diffx.load.text.TokenizerByWord
public final class TokenizerByWord
The tokeniser for characters events.
This class is not synchronized.
| Constructor Summary | |
|---|---|
TokenizerByWord(WhiteSpaceProcessing whitespace)
Creates a new tokenizer. |
|
| Method Summary | |
|---|---|
TextGranularity |
granurality()
Always TextGranularity.WORD. |
List<TextEvent> |
tokenize(CharSequence seq)
Returns the list of TextEvent corresponding to the specified character sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TokenizerByWord(WhiteSpaceProcessing whitespace)
whitespace - the whitespace processing for this tokenizer.
NullPointerException - if the white space processing is not specified.| Method Detail |
|---|
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.WORD.
Returns the text granularity of this tokenizer.
granurality in interface TextTokenizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||