Class CsvValueDecorators
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.csv.CsvValueDecorators
-
public class CsvValueDecorators extends java.lang.Object
Container class for defaultCsvValueDecorator
implementations- Since:
- 2.18
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CsvValueDecorators.StringPrefixSuffixDecorator
Decorated that adds static prefix and suffix around value to decorate value; removes the same when un-decorating.
-
Field Summary
Fields Modifier and Type Field Description static CsvValueDecorator
OPTIONAL_BRACKETS_DECORATOR
CsvValueDecorators.StringPrefixSuffixDecorator
that uses square brackets ([]
) around decorated value, but does not require their use (removes if used, ignores it not).static CsvValueDecorator
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 Summary
Constructors Constructor Description CsvValueDecorators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CsvValueDecorator
optionalPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both optional.static CsvValueDecorator
requiredPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both required.
-
-
-
Field Detail
-
OPTIONAL_BRACKETS_DECORATOR
public static final CsvValueDecorator 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
public static final CsvValueDecorator 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).
-
-
Method Detail
-
optionalPrefixSuffixDecorator
public static CsvValueDecorator optionalPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both optional.
-
requiredPrefixSuffixDecorator
public static CsvValueDecorator requiredPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecorator
with given prefix and suffix, both required.
-
-