com.fasterxml.jackson.core.JsonParser.Feature s.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | _defaultState
Whether feature is enabled or disabled by default. |
| private final JsonParser. | _mappedFeature
For backwards compatibility we may need to map to one of existing |
| private final int | |
| public static final StreamReadFeature | AUTO_CLOSE_SOURCE
Feature that determines whether parser will automatically close underlying input source that is NOT owned by the parser. |
| public static final StreamReadFeature | IGNORE_UNDEFINED
Feature that determines what to do if the underlying data format requires knowledge of all properties to decode (usually via a Schema), and if no definition is found for a property that input content contains. |
| public static final StreamReadFeature | INCLUDE_SOURCE_IN_LOCATION
Feature that determines whether |
| public static final StreamReadFeature | STRICT_DUPLICATE_DETECTION
Feature that determines whether |
| public static final StreamReadFeature | USE_FAST_BIG_NUMBER_PARSER
Feature that determines whether to use the built-in Java code for parsing
|
| public static final StreamReadFeature | USE_FAST_DOUBLE_PARSER
Feature that determines whether we use the built-in |
| 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. 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. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements com. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public JsonParser. | |
| public static StreamReadFeature | |
| public static StreamReadFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState Whether feature is enabled or disabled by default. | |
| _mappedFeature | back to summary |
|---|---|
| private final JsonParser. For backwards compatibility we may need to map to one of existing | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| AUTO_CLOSE_SOURCE | back to summary |
|---|---|
| public static final StreamReadFeature AUTO_CLOSE_SOURCE Feature that determines whether parser will automatically
close underlying input source that is NOT owned by the
parser. If disabled, calling application has to separately
close the underlying Feature is enabled by default. | |
| IGNORE_UNDEFINED | back to summary |
|---|---|
| public static final StreamReadFeature IGNORE_UNDEFINED Feature that determines what to do if the underlying data format requires knowledge of all properties to decode (usually via a Schema), and if no definition is found for a property that input content contains. Typically most textual data formats do NOT require schema information (although some do, such as CSV), whereas many binary data formats do require definitions (such as Avro, protobuf), although not all (Smile, CBOR, BSON and MessagePack do not). Further note that some formats that do require schema information will not be able to ignore undefined properties: for example, Avro is fully positional and there is no possibility of undefined data. This leaves formats like Protobuf that have identifiers that may or may not map; and as such Protobuf format does make use of this feature. 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 read an unknown
property will result in a | |
| INCLUDE_SOURCE_IN_LOCATION | back to summary |
|---|---|
| public static final StreamReadFeature INCLUDE_SOURCE_IN_LOCATION Feature that determines whether Most common reason for disabling this feature is to avoid leaking internal information; this may be done for security reasons. Note that even if source reference is included, only parts of contents are usually printed, and not the whole contents. Further, many source reference types can not necessarily access contents (like streams), so only type is indicated, not contents.
Feature is enabled by default, meaning that "source reference" information is passed
and some or all of the source content may be included in | |
| STRICT_DUPLICATE_DETECTION | back to summary |
|---|---|
| public static final StreamReadFeature 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: this typically adds 20-30% to execution time for basic parsing. | |
| USE_FAST_BIG_NUMBER_PARSER | back to summary |
|---|---|
| public static final StreamReadFeature USE_FAST_BIG_NUMBER_PARSER Feature that determines whether to use the built-in Java code for parsing
This setting is disabled by default.
| |
| USE_FAST_DOUBLE_PARSER | back to summary |
|---|---|
| public static final StreamReadFeature USE_FAST_DOUBLE_PARSER Feature that determines whether we use the built-in This setting is disabled by default.
| |
| StreamReadFeature | back to summary |
|---|---|
| private StreamReadFeature(JsonParser. | |
| 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 JsonParser. | |
| valueOf | back to summary |
|---|---|
| public static StreamReadFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static StreamReadFeature[] values() | |