Top Description Fields Constructors Methods
tools.jackson.dataformat.toml

public final Enum TomlReadFeature

extends Enum<TomlReadFeature>
implements FormatFeature
Class Inheritance
All Implemented Interfaces
tools.jackson.core.FormatFeature, tools.jackson.core.util.JacksonFeature
Imports
tools.jackson.core.FormatFeature

Enumeration that defines all togglable features for TOML parsers.

Field Summary

Modifier and TypeField and Description
private final boolean
private final int
public static final TomlReadFeature
PARSE_JAVA_TIME

TOML has special syntax for time types corresponding to java.time.LocalDate, java.time.LocalTime, java.time.LocalDateTime and java.time.OffsetDateTime.

Constructor Summary

AccessConstructor and Description
private
TomlReadFeature(boolean defaultState)

Method Summary

Modifier and TypeMethod and Description
public static int
public boolean
enabledByDefault()

Implements tools.jackson.core.util.JacksonFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.

public boolean
enabledIn(int flags)

Implements tools.jackson.core.util.JacksonFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask.

public int
getMask()

Implements tools.jackson.core.util.JacksonFeature.getMask.

Returns bit mask for this feature instance; must be a single bit, that is of form 1 << N.

public static TomlReadFeature
public static TomlReadFeature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_defaultStateback to summary
private final boolean _defaultState
_maskback to summary
private final int _mask
PARSE_JAVA_TIMEback to summary
public static final TomlReadFeature PARSE_JAVA_TIME

TOML has special syntax for time types corresponding to java.time.LocalDate, java.time.LocalTime, java.time.LocalDateTime and java.time.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 tools.jackson.core.JsonToken#VALUE_EMBEDDED_OBJECT tokens.

Constructor Detail

TomlReadFeatureback to summary
private TomlReadFeature(boolean defaultState)

Method Detail

collectDefaultsback to summary
public static int collectDefaults()
enabledByDefaultback to summary
public boolean enabledByDefault()

Implements tools.jackson.core.util.JacksonFeature.enabledByDefault.

Doc from tools.jackson.core.util.JacksonFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.

Annotations
@Override
enabledInback to summary
public boolean enabledIn(int flags)

Implements tools.jackson.core.util.JacksonFeature.enabledIn.

Doc from tools.jackson.core.util.JacksonFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask.

Annotations
@Override
getMaskback to summary
public int getMask()

Implements tools.jackson.core.util.JacksonFeature.getMask.

Doc from tools.jackson.core.util.JacksonFeature.getMask.

Returns bit mask for this feature instance; must be a single bit, that is of form 1 << N.

Annotations
@Override
valueOfback to summary
public static TomlReadFeature valueOf(String name)
valuesback to summary
public static TomlReadFeature[] values()