Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.toml

public final Enum TomlWriteFeature

extends Enum<TomlWriteFeature>
implements FormatFeature
Class Inheritance
All Implemented Interfaces
com.fasterxml.jackson.core.FormatFeature, com.fasterxml.jackson.core.util.JacksonFeature
Imports
com.fasterxml.jackson.core.FormatFeature, .JsonGenerator

Enumeration that defines all togglable features for TOML generators.

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final int
public static final TomlWriteFeature
FAIL_ON_NULL_WRITE

The TOML spec does not allow null values.

pack-priv static final int
INTERNAL_PROHIBIT_INTERNAL_BUFFER_ALLOCATE

Internal option for unit tests: Prohibit allocating internal buffers, except through the buffer recycler

Constructor Summary

AccessConstructor and Description
private
TomlWriteFeature(boolean defaultState)

Method Summary

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

Implements com.fasterxml.jackson.core.FormatFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.

public boolean
enabledIn(int
Bit field that contains a set of enabled features of this type
flags
)

Implements com.fasterxml.jackson.core.FormatFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask

public int
getMask()

Implements com.fasterxml.jackson.core.FormatFeature.getMask.

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

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

Field Detail

_defaultStateback to summary
pack-priv final boolean _defaultState
_maskback to summary
pack-priv final int _mask
FAIL_ON_NULL_WRITEback to summary
public static final TomlWriteFeature FAIL_ON_NULL_WRITE

The TOML spec does not allow null values. We instead write an empty string when JsonGenerator#writeNull() by default.

When this option is set, any attempt to write a null value will error instead.

INTERNAL_PROHIBIT_INTERNAL_BUFFER_ALLOCATEback to summary
pack-priv static final int INTERNAL_PROHIBIT_INTERNAL_BUFFER_ALLOCATE

Internal option for unit tests: Prohibit allocating internal buffers, except through the buffer recycler

Constructor Detail

TomlWriteFeatureback to summary
private TomlWriteFeature(boolean defaultState)

Method Detail

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

Implements com.fasterxml.jackson.core.FormatFeature.enabledByDefault.

Doc from com.fasterxml.jackson.core.FormatFeature.enabledByDefault.

Accessor for checking whether this feature is enabled by default.

Returns:boolean

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledByDefault.

Whether this instance is enabled by default or not

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

Implements com.fasterxml.jackson.core.FormatFeature.enabledIn.

Doc from com.fasterxml.jackson.core.FormatFeature.enabledIn.

Convenience method for checking whether feature is enabled in given bitmask

Parameters
flags:int

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

Bit field that contains a set of enabled features of this type

Returns:boolean

Doc from com.fasterxml.jackson.core.util.JacksonFeature.enabledIn.

True if this feature is enabled in passed bit field

Annotations
@Override
getMaskback to summary
public int getMask()

Implements com.fasterxml.jackson.core.FormatFeature.getMask.

Doc from com.fasterxml.jackson.core.FormatFeature.getMask.

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

Returns:int

Doc from com.fasterxml.jackson.core.util.JacksonFeature.getMask.

Bit mask of this feature

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