Decorations are handled after handling other encoding aspects such as optional quoting and/or escaping.
Decorators can be registered on specific columns of CsvSchema.
| Modifier and Type | Method and Description |
|---|---|
| public default String | Returns: Decorated value to use, IF NOTnull: if null will use
default null replacement value.Generator that will be used for actual serialization gen)Method called instead of |
| public String | Returns: Decorated value (which may beplainValue as-is) but
Must Not be nullGenerator that will be used for actual serialization gen, String Value to decorate plainValue)Method called during serialization when encoding a value, to produce "decorated" value to include in output (possibly escaped and/or quoted). |
| public String | Returns: Value after removing decorations, if any.Parser that was used to decode textual value from input parser, String Value from which to remove decorations, if any
(some decorators can allow optional decorations; others may fail
if none found) decoratedValue)Method called during deserialization, to remove possible decoration
applied with |
| decorateNull | back to summary |
|---|---|
| public default String decorateNull(CsvGenerator gen) throws IOException Method called instead of
| |
| decorateValue | back to summary |
|---|---|
| public String decorateValue(CsvGenerator gen, String plainValue) throws IOException Method called during serialization when encoding a value,
to produce "decorated" value to include in output (possibly
escaped and/or quoted).
Note that possible escaping and/or quoting (as per configuration
of
| |
| undecorateValue | back to summary |
|---|---|
| public String undecorateValue(CsvParser parser, String decoratedValue) throws IOException Method called during deserialization, to remove possible decoration
applied with
| |