QuoteAwareStringSplitter
instead@Deprecated public class QuoteAwareStringSplitter extends StringSplitter
StringSplitter that does not split on a delimiter if it falls
between single or double quotesoptions, pos| Constructor and Description |
|---|
QuoteAwareStringSplitter(String string)
Deprecated.
Construct a new instance.
|
QuoteAwareStringSplitter(String string,
char delimiter)
Deprecated.
Construct a new instance.
|
QuoteAwareStringSplitter(String string,
char delimiter,
SplitOption... options)
Deprecated.
Construct a new instance.
|
QuoteAwareStringSplitter(String string,
SplitOption... options)
Deprecated.
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmSetNext()
Deprecated.
Before an attempt is made to
set the next token do
some analysis on the internal state of the splitter to see if its
actually appropriate to do so. |
protected boolean |
isReadyToSplit()
Deprecated.
Determine, based on state factors that are recorded within the class, if
the splitter is actually ready to split the string on an instance of the
delimiter.
|
protected void |
updateIsReadyToSplit(char c)
Deprecated.
Given a character
c that is processed by the splitter, update the
state that determines whether the splitter would actually be ready to
split in the event that it encounters a delimiter character. |
atEndOfLine, hasNext, next, reset, toArraypublic QuoteAwareStringSplitter(String string)
string - string the string to splitpublic QuoteAwareStringSplitter(String string, SplitOption... options)
string - string the string to splitoptions - an array of options to supplement the
split behaviourpublic QuoteAwareStringSplitter(String string, char delimiter)
string - string the string to splitdelimiter - the delimiter upon which to splitpublic QuoteAwareStringSplitter(String string, char delimiter, SplitOption... options)
string - string the string to splitdelimiter - the delimiter upon which to splitoptions - an array of options to supplement the
split behaviourprotected boolean isReadyToSplit()
StringSplittertrue, but a
subclass can use it for awareness of certain conditions that would mean a
string should not be split on an instance of the delimiter (i.e. if the
delimiter occurs within quotes).isReadyToSplit in class StringSplittertrue if the splitter is actually ready to perform a splitprotected void updateIsReadyToSplit(char c)
StringSplitterc that is processed by the splitter, update the
state that determines whether the splitter would actually be ready to
split in the event that it encounters a delimiter character.updateIsReadyToSplit in class StringSplitterpublic boolean confirmSetNext()
StringSplitterset the next token do
some analysis on the internal state of the splitter to see if its
actually appropriate to do so. If the next token should not be set,
return false from this method and also optionally change the
StringSplitter.pos pointer to rewind the splitter.confirmSetNext in class StringSplittertrue if the splitter is indeed ready to set the next
token