public enum QuoteStyle extends Enum<QuoteStyle>
| Enum Constant and Description |
|---|
DOUBLE
Wrap values with double quotes.
|
FOLDED
folded:
>-
Each line
is literal
and are joined with spaces
|
LITERAL
literal: |-
Each line
is literal
and are joined with new lines
|
PLAIN
Default style, without quotes when possible.
|
SINGLE
Wrap values with single quotes.
|
| Modifier and Type | Method and Description |
|---|---|
static QuoteStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuoteStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuoteStyle SINGLE
single: 'value'
public static final QuoteStyle DOUBLE
double: "value"
public static final QuoteStyle PLAIN
plain: valueIf value have characters that must be escaped then
SINGLE quote style is used.public static final QuoteStyle LITERAL
literal: |- Each line is literal and are joined with new lines
public static final QuoteStyle FOLDED
folded: >-
Each line
is literal
and are joined with spaces
public static QuoteStyle[] values()
for (QuoteStyle c : QuoteStyle.values()) System.out.println(c);
public static QuoteStyle 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 nullCopyright © 2023. All rights reserved.