@Deprecated public enum SplitOption extends Enum<SplitOption>
StringSplitter to specify
additional split behaviour to supplement the delimiter (i.e. always splitting
on a newline).| Enum Constant and Description |
|---|
DROP_QUOTES
Deprecated.
For the
QuoteAwareStringSplitter drop any quotes that surround a
quoted sequence that may contain a delimiter. |
SPLIT_ON_NEWLINE
Deprecated.
Split on a newline character sequence (\n, \r\n, \r) in addition to
splitting on the delimiter.
|
TOKENIZE_PARENTHESIS
Deprecated.
In addition to splitting on the delimiter, split on an any kind of
parenthesis and return the same as an individual token.
|
TRIM_WHITESPACE
Deprecated.
Trim any leading and trailing whitespace from each token.
|
| Modifier and Type | Field and Description |
|---|---|
static SplitOption[] |
NONE
Deprecated.
A constant that signifies no split options should be passed to the
StringSplitter. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled(StringSplitter splitter)
Deprecated.
Given a
StringSplitter instance, check to see if this
option is enabled. |
int |
mask()
Deprecated.
Return the bit mask for this
SplitOption. |
static SplitOption |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static SplitOption[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SplitOption SPLIT_ON_NEWLINE
public static final SplitOption TOKENIZE_PARENTHESIS
public static final SplitOption DROP_QUOTES
QuoteAwareStringSplitter drop any quotes that surround a
quoted sequence that may contain a delimiter.public static final SplitOption TRIM_WHITESPACE
public static SplitOption[] NONE
StringSplitter.public static SplitOption[] values()
for (SplitOption c : SplitOption.values()) System.out.println(c);
public static SplitOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int mask()
SplitOption. Always use this as
opposed to Enum.ordinal().public boolean isEnabled(StringSplitter splitter)
StringSplitter instance, check to see if this
option is enabled. An option can be enabled by
passing it to the
constructor.splitter - the StringSplitter to checktrue if the bit corresponding to this option is set in
options