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 classDecorated that adds static prefix and suffix around value to decorate value; removes the same when un-decorating. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CsvValueDecoratorCsvValueDecorators.StringPrefixSuffixDecoratorthat uses square brackets ([]) around decorated value, but does not require their use (removes if used, ignores it not).static final CsvValueDecoratorCsvValueDecorators.StringPrefixSuffixDecoratorthat 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 CsvValueDecoratoroptionalPrefixSuffixDecorator(String prefix, String suffix) Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both optional.static CsvValueDecoratorrequiredPrefixSuffixDecorator(String prefix, String suffix) Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both required.
-
Field Details
-
OPTIONAL_BRACKETS_DECORATOR
CsvValueDecorators.StringPrefixSuffixDecoratorthat uses square brackets ([]) around decorated value, but does not require their use (removes if used, ignores it not). -
STRICT_BRACKETS_DECORATOR
CsvValueDecorators.StringPrefixSuffixDecoratorthat 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.StringPrefixSuffixDecoratorwith given prefix and suffix, both optional. -
requiredPrefixSuffixDecorator
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both required.
-