程序包 | 说明 |
---|---|
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.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.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
限定符和类型 | 字段和说明 |
---|---|
protected ObjectCodec |
JsonFactory._objectCodec
Object that implements conversion functionality between
Java objects and JSON content.
|
限定符和类型 | 方法和说明 |
---|---|
abstract ObjectCodec |
JsonParser.getCodec()
Accessor for
ObjectCodec associated with this
parser, if any. |
abstract ObjectCodec |
JsonGenerator.getCodec()
Method for accessing the object used for writing Java
object as Json content
(using method
JsonGenerator.writeObject(java.lang.Object) ). |
ObjectCodec |
JsonFactory.getCodec() |
限定符和类型 | 方法和说明 |
---|---|
abstract void |
JsonParser.setCodec(ObjectCodec c)
Setter that allows defining
ObjectCodec associated with this
parser, if any. |
abstract JsonGenerator |
JsonGenerator.setCodec(ObjectCodec oc)
Method that can be called to set or reset the object to
use for writing Java objects as JsonContent
(using method
JsonGenerator.writeObject(java.lang.Object) ). |
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(ObjectCodec oc) |
限定符和类型 | 字段和说明 |
---|---|
protected ObjectCodec |
Utf8StreamParser._objectCodec
Codec used for data binding when (if) requested; typically full
ObjectMapper , but that abstract is not part of core
package. |
protected ObjectCodec |
ReaderBasedParser._objectCodec |
protected ObjectCodec |
JsonGeneratorBase._objectCodec |
限定符和类型 | 方法和说明 |
---|---|
ObjectCodec |
Utf8StreamParser.getCodec() |
ObjectCodec |
ReaderBasedParser.getCodec() |
ObjectCodec |
JsonGeneratorBase.getCodec() |
限定符和类型 | 方法和说明 |
---|---|
JsonParser |
ByteSourceBootstrapper.constructParser(int features,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols,
CharsToNameCanonicalizer rootCharSymbols) |
void |
Utf8StreamParser.setCodec(ObjectCodec c) |
void |
ReaderBasedParser.setCodec(ObjectCodec c) |
JsonGenerator |
JsonGeneratorBase.setCodec(ObjectCodec oc) |
构造器和说明 |
---|
JsonGeneratorBase(int features,
ObjectCodec codec) |
ReaderBasedParser(IOContext ctxt,
int features,
Reader r,
ObjectCodec codec,
CharsToNameCanonicalizer st) |
Utf8Generator(IOContext ctxt,
int features,
ObjectCodec codec,
OutputStream out) |
Utf8Generator(IOContext ctxt,
int features,
ObjectCodec codec,
OutputStream out,
byte[] outputBuffer,
int outputOffset,
boolean bufferRecyclable) |
Utf8StreamParser(IOContext ctxt,
int features,
InputStream in,
ObjectCodec codec,
BytesToNameCanonicalizer sym,
byte[] inputBuffer,
int start,
int end,
boolean bufferRecyclable) |
WriterBasedGenerator(IOContext ctxt,
int features,
ObjectCodec codec,
Writer w) |
限定符和类型 | 类和说明 |
---|---|
class |
ObjectMapper
This mapper (or, data binder, or codec) provides functionality for
converting between Java objects (instances of JDK provided core classes,
beans), and matching JSON constructs.
|
class |
ObjectReader
Builder object that can be used for per-serialization configuration of
deserialization parameters, such as root type to use or object
to update (instead of constructing new instance).
|
限定符和类型 | 字段和说明 |
---|---|
protected ObjectCodec |
TreeTraversingParser._objectCodec |
限定符和类型 | 方法和说明 |
---|---|
ObjectCodec |
TreeTraversingParser.getCodec() |
限定符和类型 | 方法和说明 |
---|---|
void |
TreeTraversingParser.setCodec(ObjectCodec c) |
构造器和说明 |
---|
TreeTraversingParser(JsonNode n,
ObjectCodec codec) |
限定符和类型 | 字段和说明 |
---|---|
protected ObjectCodec |
SmileParser._objectCodec
Codec used for data binding when (if) requested.
|
限定符和类型 | 方法和说明 |
---|---|
ObjectCodec |
SmileParser.getCodec() |
限定符和类型 | 方法和说明 |
---|---|
SmileParser |
SmileParserBootstrapper.constructParser(int generalParserFeatures,
int smileFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols) |
void |
SmileParser.setCodec(ObjectCodec c) |
构造器和说明 |
---|
SmileFactory(ObjectCodec oc) |
SmileGenerator(IOContext ctxt,
int jsonFeatures,
int smileFeatures,
ObjectCodec codec,
OutputStream out) |
SmileGenerator(IOContext ctxt,
int jsonFeatures,
int smileFeatures,
ObjectCodec codec,
OutputStream out,
byte[] outputBuffer,
int offset,
boolean bufferRecyclable) |
SmileParser(IOContext ctxt,
int parserFeatures,
int smileFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer sym,
InputStream in,
byte[] inputBuffer,
int start,
int end,
boolean bufferRecyclable) |
限定符和类型 | 字段和说明 |
---|---|
protected ObjectCodec |
TokenBuffer.Parser._codec |
protected ObjectCodec |
TokenBuffer._objectCodec
Object codec to use for stream-based object
conversion through parser/generator interfaces.
|
限定符和类型 | 方法和说明 |
---|---|
ObjectCodec |
TokenBuffer.getCodec() |
ObjectCodec |
TokenBuffer.Parser.getCodec() |
ObjectCodec |
JsonParserDelegate.getCodec() |
ObjectCodec |
JsonGeneratorDelegate.getCodec() |
限定符和类型 | 方法和说明 |
---|---|
JsonParser |
TokenBuffer.asParser(ObjectCodec codec)
Method used to create a
JsonParser that can read contents
stored in this buffer. |
JsonGenerator |
TokenBuffer.setCodec(ObjectCodec oc) |
void |
TokenBuffer.Parser.setCodec(ObjectCodec c) |
void |
JsonParserDelegate.setCodec(ObjectCodec c) |
JsonGenerator |
JsonGeneratorDelegate.setCodec(ObjectCodec oc) |
构造器和说明 |
---|
TokenBuffer.Parser(TokenBuffer.Segment firstSeg,
ObjectCodec codec) |
TokenBuffer(ObjectCodec codec) |