程序包 | 说明 |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
限定符和类型 | 方法和说明 |
---|---|
static JsonParser.Feature |
JsonParser.Feature.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonParser.Feature[] |
JsonParser.Feature.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
JsonParser |
JsonParser.configure(JsonParser.Feature f,
boolean state)
Method for enabling or disabling specified feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.configure(JsonParser.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonParser |
JsonParser.disable(JsonParser.Feature f)
Method for disabling specified feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.disable(JsonParser.Feature f)
Method for disabling specified parser features
(check
JsonParser.Feature for list of features) |
void |
JsonParser.disableFeature(JsonParser.Feature f)
已过时。
Use
JsonParser.disable(Feature) instead |
void |
JsonFactory.disableParserFeature(JsonParser.Feature f)
已过时。
Use
JsonFactory.disable(JsonParser.Feature) instead |
JsonParser |
JsonParser.enable(JsonParser.Feature f)
Method for enabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonParser.Feature f)
Method for enabling specified parser feature
(check
JsonParser.Feature for list of features) |
void |
JsonParser.enableFeature(JsonParser.Feature f)
已过时。
Use
JsonParser.enable(Feature) instead |
void |
JsonFactory.enableParserFeature(JsonParser.Feature f)
已过时。
Use
JsonFactory.enable(JsonParser.Feature) instead |
boolean |
JsonParser.isEnabled(JsonParser.Feature f)
Method for checking whether specified
JsonParser.Feature
is enabled. |
boolean |
JsonFactory.isEnabled(JsonParser.Feature f)
Checked whether specified parser feature is enabled.
|
boolean |
JsonParser.isFeatureEnabled(JsonParser.Feature f)
已过时。
Use
JsonParser.isEnabled(Feature) instead |
boolean |
JsonFactory.isParserFeatureEnabled(JsonParser.Feature f)
已过时。
Use
JsonFactory.isEnabled(JsonParser.Feature) instead |
void |
JsonParser.setFeature(JsonParser.Feature f,
boolean state)
|
void |
JsonFactory.setParserFeature(JsonParser.Feature f,
boolean state)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
void |
MapperConfigurator.configure(JsonParser.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.configure(JsonParser.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.disable(JsonParser.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.enable(JsonParser.Feature f,
boolean state) |
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.configure(JsonParser.Feature f,
boolean state)
Method for changing state of an on/off
JsonParser feature for
JsonFactory instance this object mapper uses. |
boolean |
ObjectMapper.isEnabled(JsonParser.Feature f)
Convenience method, equivalent to:
getJsonFactory().isEnabled(f);
|
boolean |
Module.SetupContext.isEnabled(JsonParser.Feature f) |
限定符和类型 | 方法和说明 |
---|---|
JsonParser |
JsonParserDelegate.disable(JsonParser.Feature f) |
JsonParser |
JsonParserDelegate.enable(JsonParser.Feature f) |
boolean |
JsonParserDelegate.isEnabled(JsonParser.Feature f) |