public static enum CsvParser.Feature extends Enum<CsvParser.Feature>
| Enum Constant and Description |
|---|
TRIM_SPACES
Feature determines whether spaces around separator characters
(commas) are to be automatically trimmed before being reported
or not.
|
WRAP_AS_ARRAY
Feature that determines how stream of records (usually CSV lines, but sometimes
multiple lines when linefeeds are included in quoted values) is exposed:
either as a sequence of Objects (false), or as an array of Objects (true).
|
| Modifier and Type | Method and Description |
|---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that
are enabled by default.
|
boolean |
enabledByDefault() |
int |
getMask() |
static CsvParser.Feature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CsvParser.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CsvParser.Feature TRIM_SPACES
Default value is false, as per RFC-4180.
public static final CsvParser.Feature WRAP_AS_ARRAY
ObjectMapper.readValues(...)
and array of Objects convenient when binding to Lists or
arrays of values.
Default value is false, meaning that by default a CSV document is exposed as a sequence of root-level Object entries.
public static CsvParser.Feature[] values()
for (CsvParser.Feature c : CsvParser.Feature.values()) System.out.println(c);
public static CsvParser.Feature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static int collectDefaults()
public boolean enabledByDefault()
public int getMask()
Copyright © 2012-2013 FasterXML. All Rights Reserved.