Class CsvValueDecorators
java.lang.Object
com.fasterxml.jackson.dataformat.csv.CsvValueDecorators
Container class for default
CsvValueDecorator
implementations- Since:
- 2.18
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Decorated that adds static prefix and suffix around value to decorate value; removes the same when un-decorating. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CsvValueDecorator
CsvValueDecorators.StringPrefixSuffixDecorator
that uses square brackets ([]
) around decorated value, but does not require their use (removes if used, ignores it not).static final CsvValueDecorator
CsvValueDecorators.StringPrefixSuffixDecorator
that uses square brackets ([]
) around decorated value, and requires their use (if value has no matching decoration, an exception is thrown when attempting to read the value). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CsvValueDecorator
optionalPrefixSuffixDecorator
(String prefix, String suffix) Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both optional.static CsvValueDecorator
requiredPrefixSuffixDecorator
(String prefix, String suffix) Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both required.
-
Field Details
-
OPTIONAL_BRACKETS_DECORATOR
CsvValueDecorators.StringPrefixSuffixDecorator
that uses square brackets ([]
) around decorated value, but does not require their use (removes if used, ignores it not). -
STRICT_BRACKETS_DECORATOR
CsvValueDecorators.StringPrefixSuffixDecorator
that uses square brackets ([]
) around decorated value, and requires their use (if value has no matching decoration, an exception is thrown when attempting to read the value).
-
-
Constructor Details
-
CsvValueDecorators
public CsvValueDecorators()
-
-
Method Details
-
optionalPrefixSuffixDecorator
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both optional. -
requiredPrefixSuffixDecorator
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both required.
-