Package | Description |
---|---|
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 |
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.
|
Modifier and Type | Field and Description |
---|---|
protected ObjectCodec |
JsonFactory._objectCodec
Object that implements conversion functionality between
Java objects and JSON content.
|
Modifier and Type | Method and Description |
---|---|
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() |
Modifier and Type | Method and Description |
---|---|
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). |
Constructor and Description |
---|
JsonFactory(ObjectCodec oc) |
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
ObjectCodec |
Utf8StreamParser.getCodec() |
ObjectCodec |
ReaderBasedParser.getCodec() |
ObjectCodec |
JsonGeneratorBase.getCodec() |
Modifier and Type | Method and Description |
---|---|
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) |
Constructor and Description |
---|
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) |
Modifier and Type | Class and Description |
---|---|
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).
|
Modifier and Type | Field and Description |
---|---|
protected ObjectCodec |
TreeTraversingParser._objectCodec |
Modifier and Type | Method and Description |
---|---|
ObjectCodec |
TreeTraversingParser.getCodec() |
Modifier and Type | Method and Description |
---|---|
void |
TreeTraversingParser.setCodec(ObjectCodec c) |
Constructor and Description |
---|
TreeTraversingParser(JsonNode n,
ObjectCodec codec) |
Modifier and Type | Field and Description |
---|---|
protected ObjectCodec |
SmileParser._objectCodec
Codec used for data binding when (if) requested.
|
Modifier and Type | Method and Description |
---|---|
ObjectCodec |
SmileParser.getCodec() |
Modifier and Type | Method and Description |
---|---|
SmileParser |
SmileParserBootstrapper.constructParser(int generalParserFeatures,
int smileFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols) |
void |
SmileParser.setCodec(ObjectCodec c) |
Constructor and Description |
---|
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) |
Modifier and Type | Field and Description |
---|---|
protected ObjectCodec |
TokenBuffer.Parser._codec |
protected ObjectCodec |
TokenBuffer._objectCodec
Object codec to use for stream-based object
conversion through parser/generator interfaces.
|
Modifier and Type | Method and Description |
---|---|
ObjectCodec |
TokenBuffer.getCodec() |
ObjectCodec |
TokenBuffer.Parser.getCodec() |
ObjectCodec |
JsonParserDelegate.getCodec() |
ObjectCodec |
JsonGeneratorDelegate.getCodec() |
Modifier and Type | Method and Description |
---|---|
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) |
Constructor and Description |
---|
TokenBuffer.Parser(TokenBuffer.Segment firstSeg,
ObjectCodec codec) |
TokenBuffer(ObjectCodec codec) |