public class CsvValueDecorators extends Object
CsvValueDecorator implementations| Modifier and Type | Class and Description |
|---|---|
static class |
CsvValueDecorators.StringPrefixSuffixDecorator
Decorated that adds static prefix and suffix around value to decorate value;
removes the same when un-decorating.
|
| Modifier and Type | Field and 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 and Description |
|---|
CsvValueDecorators() |
| Modifier and Type | Method and Description |
|---|---|
static CsvValueDecorator |
optionalPrefixSuffixDecorator(String prefix,
String suffix)
Factory method for constructing a
CsvValueDecorators.StringPrefixSuffixDecorator with
given prefix and suffix, both optional. |
static CsvValueDecorator |
requiredPrefixSuffixDecorator(String prefix,
String suffix)
Factory method for constructing a
CsvValueDecorators.StringPrefixSuffixDecorator with
given prefix and suffix, both required. |
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).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).public static CsvValueDecorator optionalPrefixSuffixDecorator(String prefix, String suffix)
CsvValueDecorators.StringPrefixSuffixDecorator with
given prefix and suffix, both optional.public static CsvValueDecorator requiredPrefixSuffixDecorator(String prefix, String suffix)
CsvValueDecorators.StringPrefixSuffixDecorator with
given prefix and suffix, both required.Copyright © 2025 FasterXML. All rights reserved.