class StrBuilder.StrBuilderTokenizer extends StrTokenizer
Constructor and Description |
---|
StrBuilderTokenizer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets the String content that the tokenizer is parsing.
|
protected java.util.List<java.lang.String> |
tokenize(char[] chars,
int offset,
int count)
Internal method to performs the tokenization.
|
add, clone, cloneReset, getCSVInstance, getCSVInstance, getCSVInstance, getDelimiterMatcher, getIgnoredMatcher, getQuoteMatcher, getTokenArray, getTokenList, getTrimmerMatcher, getTSVInstance, getTSVInstance, getTSVInstance, hasNext, hasPrevious, isEmptyTokenAsNull, isIgnoreEmptyTokens, next, nextIndex, nextToken, previous, previousIndex, previousToken, remove, reset, reset, reset, set, setDelimiterChar, setDelimiterMatcher, setDelimiterString, setEmptyTokenAsNull, setIgnoredChar, setIgnoredMatcher, setIgnoreEmptyTokens, setQuoteChar, setQuoteMatcher, setTrimmerMatcher, size, toString
protected java.util.List<java.lang.String> tokenize(char[] chars, int offset, int count)
Most users of this class do not need to call this method. This method will be called automatically by other (public) methods when required.
This method exists to allow subclasses to add code before or after the tokenization. For example, a subclass could alter the character array, offset or count to be parsed, or call the tokenizer multiple times on multiple strings. It is also be possible to filter the results.
StrTokenizer
will always pass a zero offset and a count
equal to the length of the array to this method, however a subclass
may pass other values, or even an entirely different array.
tokenize
in class StrTokenizer
chars
- the character array being tokenized, may be nulloffset
- the start position within the character array, must be validcount
- the number of characters to tokenize, must be validpublic java.lang.String getContent()
getContent
in class StrTokenizer