Note
in Jackson 2.x this was named CBORParser.Feature.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final int | |
| public static final CBORReadFeature | DECODE_USING_STANDARD_NEGATIVE_BIGINT_ENCODING
Feature that determines how binary tagged negative BigInteger values are decoded: either assuming CBOR standard encoding logic (as per spec), or the legacy Jackson encoding logic (encoding up to Jackson 2.19). |
| public static final CBORReadFeature | READ_SIMPLE_VALUE_AS_EMBEDDED_OBJECT
Feature that determines how a CBOR "simple value" of major type 7 is exposed by parser. |
| public static final CBORReadFeature | READ_UNDEFINED_AS_EMBEDDED_OBJECT
Feature that determines how an |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method 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. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int flags)
Implements tools. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements tools. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static CBORReadFeature | |
| public static CBORReadFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| DECODE_USING_STANDARD_NEGATIVE_BIGINT_ENCODING | back to summary |
|---|---|
| public static final CBORReadFeature DECODE_USING_STANDARD_NEGATIVE_BIGINT_ENCODING Feature that determines how binary tagged negative BigInteger values are
decoded: either assuming CBOR standard encoding logic (as per spec),
or the legacy Jackson encoding logic (encoding up to Jackson 2.19).
When enabled, ensures proper encoding of negative values
(e.g.,
Note that there is the counterpart
The default value is | |
| READ_SIMPLE_VALUE_AS_EMBEDDED_OBJECT | back to summary |
|---|---|
| public static final CBORReadFeature READ_SIMPLE_VALUE_AS_EMBEDDED_OBJECT Feature that determines how a CBOR "simple value" of major type 7 is exposed by parser.
When enabled, the parser returns
The default value is | |
| READ_UNDEFINED_AS_EMBEDDED_OBJECT | back to summary |
|---|---|
| public static final CBORReadFeature READ_UNDEFINED_AS_EMBEDDED_OBJECT Feature that determines how an
When enabled, the parser returns
The default value is | |
| CBORReadFeature | back to summary |
|---|---|
| private CBORReadFeature(boolean defaultState) | |
| 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 tools. Doc from tools. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements tools. Doc from tools. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements tools. Doc from tools. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static CBORReadFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CBORReadFeature[] values() | |