Package com.topologi.diffx.load.text
Class TokenizerByText
java.lang.Object
com.topologi.diffx.load.text.TokenizerByText
- All Implemented Interfaces:
TextTokenizer
The tokeniser for characters events.
This class is not synchronized.
- Version:
- 11 May 2010
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WhiteSpaceProcessingDefine the whitespace processing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlwaysTextGranularity.CHARACTER.tokenize(CharSequence seq) Returns the list ofTextEventcorresponding to the specified character sequence.
-
Field Details
-
whitespace
Define the whitespace processing.
-
-
Constructor Details
-
TokenizerByText
Creates a new tokenizer.- Parameters:
whitespace- the whitespace processing for this tokenizer.- Throws:
NullPointerException- if the white space processing is not specified.
-
-
Method Details
-
tokenize
Returns the list ofTextEventcorresponding to the specified character sequence.- Specified by:
tokenizein interfaceTextTokenizer- Parameters:
seq- the character sequence to tokenize.- Returns:
- the corresponding list.
-
granurality
AlwaysTextGranularity.CHARACTER. Returns the text granularity of this tokenizer.- Specified by:
granuralityin interfaceTextTokenizer- Returns:
- the text granularity of this tokenizer.
-