Package com.unboundid.util
Enum OutputFormat
- All Implemented Interfaces:
Serializable,Comparable<OutputFormat>,java.lang.constant.Constable
This enum defines a set of output formats that may be used in conjunction
with the
ColumnFormatter when formatting data.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the output should be formatted in columns.Indicates that the output should be formatted as comma-separated values.Indicates that the output should be formatted as tab-delimited text. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFormatRetrieves the output format value with the specified name.static OutputFormatReturns the enum constant of this type with the specified name.static OutputFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLUMNS
Indicates that the output should be formatted in columns. -
TAB_DELIMITED_TEXT
Indicates that the output should be formatted as tab-delimited text. -
CSV
Indicates that the output should be formatted as comma-separated values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
forName
Retrieves the output format value with the specified name.- Parameters:
name- The name of the output format value to retrieve. It must not benull.- Returns:
- The requested output format value, or
nullif no such format is defined.
-