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

public final Enum IonReadFeature

extends Enum<IonReadFeature>
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 Ion parsers.

Note

in Jackson 2.x this was named IonParser.Feature.

Field Summary

Modifier and TypeField and Description
private final boolean
private final int
public static final IonReadFeature
READ_NULL_AS_IONVALUE

Whether to convert "null" to an IonValueNull (true); or leave as a java null (false) when deserializing.

public static final IonReadFeature
USE_NATIVE_TYPE_ID

Whether to expect Ion native Type Id construct for indicating type (true); or "generic" type property (false) when deserializing.

Constructor Summary

AccessConstructor and Description
private
IonReadFeature(boolean defaultState)

Method Summary

Modifier and TypeMethod and Description
public static int
collectDefaults()

Method that calculates bit set (flags) of all features that are enabled by default.

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 IonReadFeature
public static IonReadFeature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_defaultStateback to summary
private final boolean _defaultState
_maskback to summary
private final int _mask
READ_NULL_AS_IONVALUEback to summary
public static final IonReadFeature READ_NULL_AS_IONVALUE

Whether to convert "null" to an IonValueNull (true); or leave as a java null (false) when deserializing.

Enabled by default for backwards compatibility as that has been the behavior of `jackson-dataformat-ion` since 2.13.

Since
2.19.0
See Also
The Ion Specification
USE_NATIVE_TYPE_IDback to summary
public static final IonReadFeature USE_NATIVE_TYPE_ID

Whether to expect Ion native Type Id construct for indicating type (true); or "generic" type property (false) when deserializing.

Enabled by default.

See Also
The Ion Specification

Constructor Detail

IonReadFeatureback to summary
private IonReadFeature(boolean defaultState)

Method Detail

collectDefaultsback to summary
public static int collectDefaults()

Method that calculates bit set (flags) of all features that are enabled by default.

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 IonReadFeature valueOf(String name)
valuesback to summary
public static IonReadFeature[] values()