Note
in Jackson 2.x this was named CsvGenerator.Feature.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final int | |
| public static final CsvWriteFeature | ALWAYS_QUOTE_EMPTY_STRINGS
Feature that determines whether values written as empty Strings (from |
| public static final CsvWriteFeature | ALWAYS_QUOTE_NUMBERS
Feature that determines whether values written as Nymbers (from |
| public static final CsvWriteFeature | ALWAYS_QUOTE_STRINGS
Feature that determines whether values written as Strings (from |
| public static final CsvWriteFeature | ESCAPE_CONTROL_CHARS_WITH_ESCAPE_CHAR
Feature that determines whether control characters (non-printable) are escaped using the configured escape character. |
| public static final CsvWriteFeature | ESCAPE_QUOTE_CHAR_WITH_ESCAPE_CHAR
Feature that determines whether quote characters within quoted String values are escaped using configured escape character, instead of being "doubled up" (that is: a quote character is written twice in a row). |
| public static final CsvWriteFeature | OMIT_MISSING_TAIL_COLUMNS
Feature that determines whether columns without matching value may be omitted, when they are the last values of the row. |
| public static final CsvWriteFeature | STRICT_CHECK_FOR_QUOTING
Feature that determines how much work is done before determining that
a column value requires quoting: when set as |
| public static final CsvWriteFeature | WRITE_LINEFEED_AFTER_LAST_ROW
Feature that determines whether a line-feed will be written at the end of content, after the last row of output. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default. |
| public boolean | enabledByDefault()
Implements tools. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int flags)
Implements tools. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements tools. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static CsvWriteFeature | |
| public static CsvWriteFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| ALWAYS_QUOTE_EMPTY_STRINGS | back to summary |
|---|---|
| public static final CsvWriteFeature ALWAYS_QUOTE_EMPTY_STRINGS Feature that determines whether values written as empty Strings (from | |
| ALWAYS_QUOTE_NUMBERS | back to summary |
|---|---|
| public static final CsvWriteFeature ALWAYS_QUOTE_NUMBERS Feature that determines whether values written as Nymbers (from | |
| ALWAYS_QUOTE_STRINGS | back to summary |
|---|---|
| public static final CsvWriteFeature ALWAYS_QUOTE_STRINGS Feature that determines whether values written as Strings (from | |
| ESCAPE_CONTROL_CHARS_WITH_ESCAPE_CHAR | back to summary |
|---|---|
| public static final CsvWriteFeature ESCAPE_CONTROL_CHARS_WITH_ESCAPE_CHAR Feature that determines whether control characters (non-printable) are escaped using the configured escape character. This feature allows LF and CR characters to be output as \nand \rinstead of being echoed out. This is a compatibility feature for some parsers that can not read such output back in. Default value is false so that control characters are echoed out (backwards compatible). | |
| ESCAPE_QUOTE_CHAR_WITH_ESCAPE_CHAR | back to summary |
|---|---|
| public static final CsvWriteFeature ESCAPE_QUOTE_CHAR_WITH_ESCAPE_CHAR Feature that determines whether quote characters within quoted String values are escaped using configured escape character, instead of being "doubled up" (that is: a quote character is written twice in a row). Default value is false so that quotes are doubled as necessary, not escaped. | |
| OMIT_MISSING_TAIL_COLUMNS | back to summary |
|---|---|
| public static final CsvWriteFeature OMIT_MISSING_TAIL_COLUMNS Feature that determines whether columns without matching value may be omitted,
when they are the last values of the row.
If | |
| STRICT_CHECK_FOR_QUOTING | back to summary |
|---|---|
| public static final CsvWriteFeature STRICT_CHECK_FOR_QUOTING Feature that determines how much work is done before determining that
a column value requires quoting: when set as
Note, however, that regardless setting, all values that need to be quoted
will be: it is just that when set to
Default value is | |
| WRITE_LINEFEED_AFTER_LAST_ROW | back to summary |
|---|---|
| public static final CsvWriteFeature WRITE_LINEFEED_AFTER_LAST_ROW Feature that determines whether a line-feed will be written at the end of content, after the last row of output. Note When disabling this feature it is important that
Default value is | |
| CsvWriteFeature | back to summary |
|---|---|
| private CsvWriteFeature(boolean defaultState) | |
| collectDefaults | back to summary |
|---|---|
| public static int collectDefaults() Method that calculates bit set (flags) of all features that are enabled by default. | |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements tools. Doc from tools. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements tools. Doc from tools. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements tools. Doc from tools. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static CsvWriteFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CsvWriteFeature[] values() | |