Enum LineDelimiter

java.lang.Object
java.lang.Enum<LineDelimiter>
de.siegmar.fastcsv.writer.LineDelimiter
All Implemented Interfaces:
Serializable, Comparable<LineDelimiter>, java.lang.constant.Constable

public enum LineDelimiter extends Enum<LineDelimiter>
Enumeration for different line delimiters (LF, CR, CRLF, platform default).
  • Enum Constant Details

  • Field Details

    • str

      private final String str
  • Constructor Details

    • LineDelimiter

      private LineDelimiter(String str)
  • Method Details

    • values

      public static LineDelimiter[] 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 LineDelimiter 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
    • of

      public static LineDelimiter of(String str)
      Build an enum based on the given string.
      Parameters:
      str - the string to convert to an enum.
      Returns:
      the enum representation of the given string.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LineDelimiter>