org.python.modules._csv
Enum QuoteStyle
java.lang.Object
java.lang.Enum<QuoteStyle>
org.python.modules._csv.QuoteStyle
- All Implemented Interfaces:
- Serializable, Comparable<QuoteStyle>
public enum QuoteStyle
- extends Enum<QuoteStyle>
CSV quoting styles.
Method Summary |
static QuoteStyle |
fromOrdinal(int ordinal)
Return a QuoteStyle instance from an integer value. |
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. |
QUOTE_MINIMAL
public static final QuoteStyle QUOTE_MINIMAL
QUOTE_ALL
public static final QuoteStyle QUOTE_ALL
QUOTE_NONNUMERIC
public static final QuoteStyle QUOTE_NONNUMERIC
QUOTE_NONE
public static final QuoteStyle QUOTE_NONE
values
public static QuoteStyle[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (QuoteStyle c : QuoteStyle.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static QuoteStyle valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
fromOrdinal
public static QuoteStyle fromOrdinal(int ordinal)
- Return a QuoteStyle instance from an integer value.
- Parameters:
ordinal
- an int value
- Returns:
- a QuoteStyle instance of null if invalid ordinal
Jython homepage