Enum OutputFormat

java.lang.Object
java.lang.Enum<OutputFormat>
com.unboundid.util.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.
  • Enum Constant Details

    • COLUMNS

      public static final OutputFormat COLUMNS
      Indicates that the output should be formatted in columns.
    • TAB_DELIMITED_TEXT

      public static final OutputFormat TAB_DELIMITED_TEXT
      Indicates that the output should be formatted as tab-delimited text.
    • CSV

      public static final OutputFormat CSV
      Indicates that the output should be formatted as comma-separated values.
  • Method Details

    • values

      public static OutputFormat[] 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

      public static OutputFormat 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
    • forName

      Retrieves the output format value with the specified name.
      Parameters:
      name - The name of the output format value to retrieve. It must not be null.
      Returns:
      The requested output format value, or null if no such format is defined.