Class CsvValueDecorators
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.csv.CsvValueDecorators
-
public class CsvValueDecorators extends java.lang.ObjectContainer class for defaultCsvValueDecoratorimplementations- Since:
- 2.18
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCsvValueDecorators.StringPrefixSuffixDecoratorDecorated 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 CsvValueDecoratorOPTIONAL_BRACKETS_DECORATORCsvValueDecorators.StringPrefixSuffixDecoratorthat uses square brackets ([]) around decorated value, but does not require their use (removes if used, ignores it not).static CsvValueDecoratorSTRICT_BRACKETS_DECORATORCsvValueDecorators.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 Constructor Description CsvValueDecorators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CsvValueDecoratoroptionalPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both optional.static CsvValueDecoratorrequiredPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both required.
-
-
-
Field Detail
-
OPTIONAL_BRACKETS_DECORATOR
public static final CsvValueDecorator 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
public static final CsvValueDecorator 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).
-
-
Method Detail
-
optionalPrefixSuffixDecorator
public static CsvValueDecorator optionalPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both optional.
-
requiredPrefixSuffixDecorator
public static CsvValueDecorator requiredPrefixSuffixDecorator(java.lang.String prefix, java.lang.String suffix)
Factory method for constructing aCsvValueDecorators.StringPrefixSuffixDecoratorwith given prefix and suffix, both required.
-
-