public enum TomlReadFeature extends Enum<TomlReadFeature> implements com.fasterxml.jackson.core.FormatFeature
Enum Constant and Description |
---|
PARSE_JAVA_TIME
TOML has special syntax for time types corresponding to
LocalDate , LocalTime ,
LocalDateTime and OffsetDateTime . |
Modifier and Type | Method and Description |
---|---|
static int |
collectDefaults() |
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
getMask() |
static TomlReadFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TomlReadFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TomlReadFeature PARSE_JAVA_TIME
LocalDate
, LocalTime
,
LocalDateTime
and OffsetDateTime
. By default, the TOML parser just returns
them as strings.
When this option is set, these time types will be parsed to their proper java.time
counterparts and
appear as JsonToken.VALUE_EMBEDDED_OBJECT
tokens.
public static TomlReadFeature[] values()
for (TomlReadFeature c : TomlReadFeature.values()) System.out.println(c);
public static TomlReadFeature 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()
enabledByDefault
in interface com.fasterxml.jackson.core.FormatFeature
enabledByDefault
in interface com.fasterxml.jackson.core.util.JacksonFeature
public boolean enabledIn(int flags)
enabledIn
in interface com.fasterxml.jackson.core.FormatFeature
enabledIn
in interface com.fasterxml.jackson.core.util.JacksonFeature
public int getMask()
getMask
in interface com.fasterxml.jackson.core.FormatFeature
getMask
in interface com.fasterxml.jackson.core.util.JacksonFeature
Copyright © 2021 FasterXML. All rights reserved.