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

public final Enum TomlWriteFeature

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

Enumeration that defines all togglable features for TOML generators.

Field Summary

Modifier and TypeField and Description
private final boolean
private 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 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 TomlWriteFeature
public static TomlWriteFeature[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

_defaultStateback to summary
private final boolean _defaultState
_maskback to summary
private 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 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 TomlWriteFeature valueOf(String name)
valuesback to summary
public static TomlWriteFeature[] values()