程序包 | 说明 |
---|---|
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. |
限定符和类型 | 方法和说明 |
---|---|
void |
MapperConfigurator.configure(SerializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.configure(SerializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.disable(SerializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.enable(SerializationConfig.Feature f,
boolean state) |
限定符和类型 | 方法和说明 |
---|---|
static SerializationConfig.Feature |
SerializationConfig.Feature.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SerializationConfig.Feature[] |
SerializationConfig.Feature.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.configure(SerializationConfig.Feature f,
boolean state)
Method for changing state of an on/off serialization feature for
this object mapper.
|
ObjectMapper |
ObjectMapper.disable(SerializationConfig.Feature... f)
Method for enabling specified
DeserializationConfig features. |
void |
SerializationConfig.disable(SerializationConfig.Feature f)
已过时。
Since 1.9, it is preferable to use
SerializationConfig.without(org.codehaus.jackson.map.SerializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
ObjectMapper |
ObjectMapper.enable(SerializationConfig.Feature... f)
Method for enabling specified
DeserializationConfig features. |
void |
SerializationConfig.enable(SerializationConfig.Feature f)
已过时。
Since 1.9, it is preferable to use
SerializationConfig.with(org.codehaus.jackson.map.SerializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
boolean |
SerializerProvider.isEnabled(SerializationConfig.Feature feature)
Convenience method for checking whether specified serialization
feature is enabled or not.
|
boolean |
SerializationConfig.isEnabled(SerializationConfig.Feature f)
|
boolean |
ObjectMapper.isEnabled(SerializationConfig.Feature f)
Convenience method, equivalent to:
getSerializationConfig().isEnabled(f);
|
boolean |
Module.SetupContext.isEnabled(SerializationConfig.Feature f) |
void |
SerializationConfig.set(SerializationConfig.Feature f,
boolean state)
已过时。
Since 1.9, it is preferable to use
SerializationConfig.without(org.codehaus.jackson.map.SerializationConfig.Feature...) and SerializationConfig.with(org.codehaus.jackson.map.SerializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
SerializationConfig |
SerializationConfig.with(SerializationConfig.Feature... features)
Fluent factory method that will construct and return a new configuration
object instance with specified features enabled.
|
SerializationConfig |
SerializationConfig.without(SerializationConfig.Feature... features)
Fluent factory method that will construct and return a new configuration
object instance with specified features disabled.
|