|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CsvParser.Feature>
com.fasterxml.jackson.dataformat.csv.CsvParser.Feature
public static enum CsvParser.Feature
Enumeration that defines all togglable features for Smile generators.
| Enum Constant Summary | |
|---|---|
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). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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.
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic static int collectDefaults()
public boolean enabledByDefault()
public int getMask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||