- java.lang.Object
-
- de.siegmar.fastcsv.writer.QuoteStrategies
-
public final class QuoteStrategies extends java.lang.Object
Provides some commonQuoteStrategy
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description static QuoteStrategy
ALWAYS
Enclose any field with quotes regardless of its content (even empty andnull
fields).static QuoteStrategy
EMPTY
Enclose empty but not @{code null} fields to differentiate them.static QuoteStrategy
NON_EMPTY
Enclose any field with quotes if it has content (is not empty ornull
).
-
Constructor Summary
Constructors Modifier Constructor Description private
QuoteStrategies()
-
-
-
Field Detail
-
ALWAYS
public static final QuoteStrategy ALWAYS
Enclose any field with quotes regardless of its content (even empty andnull
fields).
-
NON_EMPTY
public static final QuoteStrategy NON_EMPTY
Enclose any field with quotes if it has content (is not empty ornull
).
-
EMPTY
public static final QuoteStrategy EMPTY
Enclose empty but not @{code null} fields to differentiate them. This is required for PostgreSQL CSV imports, for example.
-
-