public static enum JacksonParser.Feature extends Enum<JacksonParser.Feature>
| 枚举常量和说明 |
|---|
ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER
Feature that can be enabled to accept quoting of all character
using backslash qooting mechanism: if not enabled, only characters
that are explicitly listed by JSON specification can be thus
escaped (see JSON spec for small list of these characters)
Since JSON specification requires quoting for all control characters,
this is a non-standard feature, and as such disabled by default.
|
ALLOW_COMMENTS
Feature that determines whether parser will allow use
of Java/C++ style comments (both '/'+'*' and
'//' varieties) within parsed content or not.
|
ALLOW_NON_NUMERIC_NUMBERS
Feature that allows parser to recognize set of
"Not-a-Number" (NaN) tokens as legal floating number
values (similar to how many other data formats and
programming language source code allows it).
|
ALLOW_NUMERIC_LEADING_ZEROS
Feature that determines whether parser will allow
JSON integral numbers to start with additional (ignorable)
zeroes (like: 000001).
|
ALLOW_SINGLE_QUOTES
Feature that determines whether parser will allow use
of single quotes (apostrophe, character '\'') for
quoting Strings (names and String values).
|
ALLOW_UNQUOTED_CONTROL_CHARS
Feature that determines whether parser will allow
JSON Strings to contain unquoted control characters
(ASCII characters with value less than 32, including
tab and line feed characters) or not.
|
ALLOW_UNQUOTED_FIELD_NAMES
Feature that determines whether parser will allow use
of unquoted field names (which is allowed by Javascript,
but not by JSON specification).
|
AUTO_CLOSE_SOURCE
Feature that determines whether parser will automatically
close underlying input source that is NOT owned by the
parser.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that
are enabled by default.
|
boolean |
enabledByDefault() |
int |
getMask() |
static JacksonParser.Feature |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JacksonParser.Feature[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final JacksonParser.Feature AUTO_CLOSE_SOURCE
InputStream and Reader
instances used to create the parser. If enabled, parser
will handle closing, as long as parser itself gets closed:
this happens when end-of-input is encountered, or parser
is closed by a call to JsonParser#close.
Feature is enabled by default.
public static final JacksonParser.Feature ALLOW_COMMENTS
Since JSON specification does not mention comments as legal construct, this is a non-standard feature; however, in the wild this is extensively used. As such, feature is disabled by default for parsers and must be explicitly enabled.
public static final JacksonParser.Feature ALLOW_UNQUOTED_FIELD_NAMES
Since JSON specification requires use of double quotes for field names, this is a non-standard feature, and as such disabled by default.
public static final JacksonParser.Feature ALLOW_SINGLE_QUOTES
Since JSON specification requires use of double quotes for field names, this is a non-standard feature, and as such disabled by default.
public static final JacksonParser.Feature ALLOW_UNQUOTED_CONTROL_CHARS
Since JSON specification requires quoting for all control characters, this is a non-standard feature, and as such disabled by default.
public static final JacksonParser.Feature ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER
Since JSON specification requires quoting for all control characters, this is a non-standard feature, and as such disabled by default.
public static final JacksonParser.Feature ALLOW_NUMERIC_LEADING_ZEROS
JsonParser#getText).
Since JSON specification does not allow leading zeroes, this is a non-standard feature, and as such disabled by default.
public static final JacksonParser.Feature ALLOW_NON_NUMERIC_NUMBERS
Since JSON specification does not allow use of such values, this is a non-standard feature, and as such disabled by default.
public static JacksonParser.Feature[] values()
for (JacksonParser.Feature c : JacksonParser.Feature.values()) System.out.println(c);
public static JacksonParser.Feature valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static int collectDefaults()
public boolean enabledByDefault()
public int getMask()
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.