程序包 | 说明 |
---|---|
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.format |
Package that contains interfaces needed for dynamic, pluggable
format (auto)detection; as well as basic utility classes for
simple format detection functionality.
|
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.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
限定符和类型 | 方法和说明 |
---|---|
JsonFactory |
JsonFactory.configure(JsonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
JsonGenerator.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) |
JsonFactory |
JsonFactory.disable(JsonGenerator.Feature f)
Method for disabling specified generator feature
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.disable(JsonParser.Feature f)
Method for disabling specified parser features
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonGenerator.Feature f)
Method for enabling specified generator features
(check
JsonGenerator.Feature for list of features) |
JsonFactory |
JsonFactory.enable(JsonParser.Feature f)
Method for enabling specified parser feature
(check
JsonParser.Feature for list of features) |
JsonFactory |
JsonFactory.setCharacterEscapes(CharacterEscapes esc)
Method for defining custom escapes factory uses for
JsonGenerator s
it creates. |
JsonFactory |
JsonFactory.setCodec(ObjectCodec oc)
Method for associating a
ObjectCodec (typically
a ObjectMapper ) with
this factory (and more importantly, parsers and generators
it constructs). |
JsonFactory |
JsonFactory.setInputDecorator(InputDecorator d)
Method for overriding currently configured input decorator
|
JsonFactory |
JsonFactory.setOutputDecorator(OutputDecorator d)
Method for overriding currently configured output decorator
|
限定符和类型 | 字段和说明 |
---|---|
protected JsonFactory[] |
DataFormatDetector._detectors
Ordered list of factories which both represent data formats to
detect (in precedence order, starting with highest) and are used
for actual detection.
|
protected JsonFactory |
DataFormatMatcher._match
Factory that produced sufficient match (if any)
|
限定符和类型 | 方法和说明 |
---|---|
JsonFactory |
DataFormatMatcher.getMatch()
Accessor for
JsonFactory that represents format that data matched. |
限定符和类型 | 方法和说明 |
---|---|
DataFormatMatcher |
InputAccessor.Std.createMatcher(JsonFactory match,
MatchStrength matchStrength) |
构造器和说明 |
---|
DataFormatDetector(JsonFactory... detectors) |
DataFormatMatcher(InputStream in,
byte[] buffered,
int bufferedLength,
JsonFactory match,
MatchStrength strength) |
构造器和说明 |
---|
DataFormatDetector(Collection<JsonFactory> detectors) |
限定符和类型 | 类和说明 |
---|---|
class |
MappingJsonFactory
Sub-class of
JsonFactory that will create a proper
ObjectCodec to allow seamless conversions between
Json content and Java objects (POJOs). |
限定符和类型 | 字段和说明 |
---|---|
protected JsonFactory |
ObjectWriter._jsonFactory
Factory used for constructing
JsonGenerator s |
protected JsonFactory |
ObjectReader._jsonFactory
Factory used for constructing
JsonGenerator s |
protected JsonFactory |
ObjectMapper._jsonFactory
Factory used to create
JsonParser and JsonGenerator
instances as necessary. |
限定符和类型 | 方法和说明 |
---|---|
JsonFactory |
ObjectMapper.getJsonFactory()
Method that can be used to get hold of
JsonFactory that this
mapper uses if it needs to construct JsonParser s
and/or JsonGenerator s. |
构造器和说明 |
---|
ObjectMapper(JsonFactory jf)
Construct mapper that uses specified
JsonFactory
for constructing necessary JsonParser s and/or
JsonGenerator s. |
ObjectMapper(JsonFactory jf,
SerializerProvider sp,
DeserializerProvider dp) |
ObjectMapper(JsonFactory jf,
SerializerProvider sp,
DeserializerProvider dp,
SerializationConfig sconfig,
DeserializationConfig dconfig) |
限定符和类型 | 类和说明 |
---|---|
class |
SmileFactory
Factory used for constructing
SmileParser and SmileGenerator
instances; both of which handle
Smile encoded data. |
限定符和类型 | 字段和说明 |
---|---|
JsonFactory |
Tool.jsonFactory |