程序包 | 说明 |
---|---|
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.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
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 JsonGenerator.Feature |
JsonGenerator.Feature.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonGenerator.Feature[] |
JsonGenerator.Feature.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
JsonGenerator |
JsonGenerator.configure(JsonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified feature:
check
JsonGenerator.Feature for list of available features. |
JsonFactory |
JsonFactory.configure(JsonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
JsonGenerator.Feature for list of features) |
abstract JsonGenerator |
JsonGenerator.disable(JsonGenerator.Feature f)
Method for disabling specified features
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.disable(JsonGenerator.Feature f)
Method for disabling specified generator feature
(check
JsonGenerator.Feature for list of features) |
void |
JsonGenerator.disableFeature(JsonGenerator.Feature f)
已过时。
|
void |
JsonFactory.disableGeneratorFeature(JsonGenerator.Feature f)
已过时。
Use
JsonFactory.disable(JsonGenerator.Feature) instead |
abstract JsonGenerator |
JsonGenerator.enable(JsonGenerator.Feature f)
Method for enabling specified parser features:
check
JsonGenerator.Feature for list of available features. |
JsonFactory |
JsonFactory.enable(JsonGenerator.Feature f)
Method for enabling specified generator features
(check
JsonGenerator.Feature for list of features) |
void |
JsonGenerator.enableFeature(JsonGenerator.Feature f)
已过时。
|
void |
JsonFactory.enableGeneratorFeature(JsonGenerator.Feature f)
已过时。
Use
JsonFactory.enable(JsonGenerator.Feature) instead |
abstract boolean |
JsonGenerator.isEnabled(JsonGenerator.Feature f)
Method for checking whether given feature is enabled.
|
boolean |
JsonFactory.isEnabled(JsonGenerator.Feature f)
Check whether specified generator feature is enabled.
|
boolean |
JsonGenerator.isFeatureEnabled(JsonGenerator.Feature f)
已过时。
|
boolean |
JsonFactory.isGeneratorFeatureEnabled(JsonGenerator.Feature f)
已过时。
Use
JsonFactory.isEnabled(JsonGenerator.Feature) instead |
void |
JsonGenerator.setFeature(JsonGenerator.Feature f,
boolean state)
|
void |
JsonFactory.setGeneratorFeature(JsonGenerator.Feature f,
boolean state)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
JsonGenerator |
JsonGeneratorBase.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorBase.enable(JsonGenerator.Feature f) |
boolean |
JsonGeneratorBase.isEnabled(JsonGenerator.Feature f) |
限定符和类型 | 方法和说明 |
---|---|
void |
MapperConfigurator.configure(JsonGenerator.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.configure(JsonGenerator.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.disable(JsonGenerator.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.enable(JsonGenerator.Feature f,
boolean state) |
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.configure(JsonGenerator.Feature f,
boolean state)
Method for changing state of an on/off
JsonGenerator feature for
JsonFactory instance this object mapper uses. |
boolean |
ObjectMapper.isEnabled(JsonGenerator.Feature f)
Convenience method, equivalent to:
getJsonFactory().isEnabled(f);
|
boolean |
Module.SetupContext.isEnabled(JsonGenerator.Feature f) |
限定符和类型 | 方法和说明 |
---|---|
JsonGenerator |
TokenBuffer.disable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.disable(JsonGenerator.Feature f) |
JsonGenerator |
TokenBuffer.enable(JsonGenerator.Feature f) |
JsonGenerator |
JsonGeneratorDelegate.enable(JsonGenerator.Feature f) |
boolean |
TokenBuffer.isEnabled(JsonGenerator.Feature f) |
boolean |
JsonGeneratorDelegate.isEnabled(JsonGenerator.Feature f) |