Enum Class QuoteStrategies

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

public enum QuoteStrategies extends Enum<QuoteStrategies> implements QuoteStrategy
Provides some common QuoteStrategy implementations.
  • Enum Constant Details

    • REQUIRED

      public static final QuoteStrategies REQUIRED
      Enclose fields only if quoting is required.
    • ALWAYS

      public static final QuoteStrategies ALWAYS
      Enclose any field with quotes regardless of its content (even empty and null fields).
    • NON_EMPTY

      public static final QuoteStrategies NON_EMPTY
      Enclose any field with quotes if it has content (is not empty or null).
    • EMPTY

      public static final QuoteStrategies EMPTY
      Enclose empty but not null fields to differentiate them. This is required for PostgreSQL CSV imports, for example.
  • Method Details

    • values

      public static QuoteStrategies[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static QuoteStrategies valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null