com.fasterxml.jackson.core.JsonGenerator.Feature s.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | _defaultState
Whether feature is enabled or disabled by default. |
| private final JsonGenerator. | _mappedFeature
For backwards compatibility we may need to map to one of existing |
| private final int | |
| public static final StreamWriteFeature | AUTO_CLOSE_CONTENT
Feature that determines what happens when the generator is
closed while there are still unmatched
|
| public static final StreamWriteFeature | AUTO_CLOSE_TARGET
Feature that determines whether generator will automatically close underlying output target that is NOT owned by the generator. |
| public static final StreamWriteFeature | FLUSH_PASSED_TO_STREAM
Feature that specifies that calls to |
| public static final StreamWriteFeature | IGNORE_UNKNOWN
Feature that determines what to do if the underlying data format requires knowledge of all properties to output, and if no definition is found for a property that caller tries to write. |
| public static final StreamWriteFeature | STRICT_DUPLICATE_DETECTION
Feature that determines whether |
| public static final StreamWriteFeature | USE_FAST_DOUBLE_WRITER
Feature that determines whether to use standard Java code to write floats/doubles (default) or use the Schubfach algorithm which is faster. |
| public static final StreamWriteFeature | WRITE_BIGDECIMAL_AS_PLAIN
Feature that determines whether |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: Bit mask of all features that are enabled by defaultMethod that calculates bit set (flags) of all features that are enabled by default. |
| public boolean | enabledByDefault()
Implements com. |
| public boolean | enabledIn(int
Bit field that contains a set of enabled features of this type flags)Implements com. |
| public int | getMask()
Implements com. 1 << N.
|
| public JsonGenerator. | |
| public static StreamWriteFeature | |
| public static StreamWriteFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState Whether feature is enabled or disabled by default. | |
| _mappedFeature | back to summary |
|---|---|
| private final JsonGenerator. For backwards compatibility we may need to map to one of existing | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| AUTO_CLOSE_CONTENT | back to summary |
|---|---|
| public static final StreamWriteFeature AUTO_CLOSE_CONTENT Feature that determines what happens when the generator is
closed while there are still unmatched
Feature is enabled by default. | |
| AUTO_CLOSE_TARGET | back to summary |
|---|---|
| public static final StreamWriteFeature AUTO_CLOSE_TARGET Feature that determines whether generator will automatically
close underlying output target that is NOT owned by the
generator.
If disabled, calling application has to separately
close the underlying Feature is enabled by default. | |
| FLUSH_PASSED_TO_STREAM | back to summary |
|---|---|
| public static final StreamWriteFeature FLUSH_PASSED_TO_STREAM Feature that specifies that calls to Feature is enabled by default. | |
| IGNORE_UNKNOWN | back to summary |
|---|---|
| public static final StreamWriteFeature IGNORE_UNKNOWN Feature that determines what to do if the underlying data format requires knowledge
of all properties to output, and if no definition is found for a property that
caller tries to write. If enabled, such properties will be quietly ignored;
if disabled, a Note that support for this feature is implemented by individual data format module, if (and only if) it makes sense for the format in question. For JSON, for example, this feature has no effect as properties need not be pre-defined.
Feature is disabled by default, meaning that if the underlying data format
requires knowledge of all properties to output, attempts to write an unknown
property will result in a | |
| STRICT_DUPLICATE_DETECTION | back to summary |
|---|---|
| public static final StreamWriteFeature STRICT_DUPLICATE_DETECTION Feature that determines whether Note that enabling this feature will incur performance overhead due to having to store and check additional information. Feature is disabled by default. | |
| USE_FAST_DOUBLE_WRITER | back to summary |
|---|---|
| public static final StreamWriteFeature USE_FAST_DOUBLE_WRITER Feature that determines whether to use standard Java code to write floats/doubles (default) or use the Schubfach algorithm which is faster. The latter approach may lead to small differences in the precision of the float/double that is written to the JSON output. Feature is disabled by default, meaning that slower JDK default conversions are used.
| |
| WRITE_BIGDECIMAL_AS_PLAIN | back to summary |
|---|---|
| public static final StreamWriteFeature WRITE_BIGDECIMAL_AS_PLAIN Feature that determines whether Note only affects generators that serialize
Feature is disabled by default, so default output mode is used; this generally
depends on how | |
| StreamWriteFeature | back to summary |
|---|---|
| private StreamWriteFeature(JsonGenerator. | |
| collectDefaults | back to summary |
|---|---|
| public static int collectDefaults() Method that calculates bit set (flags) of all features that are enabled by default.
| |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements com. Doc from com. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements com. Doc from com. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements com. Doc from com. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| mappedFeature | back to summary |
|---|---|
| public JsonGenerator. | |
| valueOf | back to summary |
|---|---|
| public static StreamWriteFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static StreamWriteFeature[] values() | |