程序包 | 说明 |
---|---|
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.io |
This package contains I/O helper classes Jackson itself uses, but that
are not exposed for external reuse.
|
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
限定符和类型 | 方法和说明 |
---|---|
protected IOContext |
JsonFactory._createContext(Object srcRef,
boolean resourceManaged)
Overridable factory method that actually instantiates desired
context object.
|
限定符和类型 | 方法和说明 |
---|---|
protected JsonGenerator |
JsonFactory._createJsonGenerator(Writer out,
IOContext ctxt)
Overridable factory method that actually instantiates generator for
given
Writer and context object. |
protected JsonParser |
JsonFactory._createJsonParser(byte[] data,
int offset,
int len,
IOContext ctxt)
Overridable factory method that actually instantiates parser
using given
Reader object for reading content
passed as raw byte array. |
protected JsonParser |
JsonFactory._createJsonParser(InputStream in,
IOContext ctxt)
Overridable factory method that actually instantiates desired parser
given
InputStream and context object. |
protected JsonParser |
JsonFactory._createJsonParser(Reader r,
IOContext ctxt)
Overridable factory method that actually instantiates parser
using given
Reader object for reading content. |
protected JsonGenerator |
JsonFactory._createUTF8JsonGenerator(OutputStream out,
IOContext ctxt)
Overridable factory method that actually instantiates generator for
given
OutputStream and context object, using UTF-8 encoding. |
protected Writer |
JsonFactory._createWriter(OutputStream out,
JsonEncoding enc,
IOContext ctxt) |
限定符和类型 | 字段和说明 |
---|---|
protected IOContext |
ByteSourceBootstrapper._context |
protected IOContext |
WriterBasedGenerator._ioContext |
protected IOContext |
Utf8Generator._ioContext |
protected IOContext |
JsonParserBase._ioContext
I/O context for this reader.
|
构造器和说明 |
---|
ByteSourceBootstrapper(IOContext ctxt,
byte[] inputBuffer,
int inputStart,
int inputLen) |
ByteSourceBootstrapper(IOContext ctxt,
InputStream in) |
JsonNumericParserBase(IOContext ctxt,
int features)
已过时。
|
JsonParserBase(IOContext ctxt,
int features) |
ReaderBasedParser(IOContext ctxt,
int features,
Reader r,
ObjectCodec codec,
CharsToNameCanonicalizer st) |
ReaderBasedParserBase(IOContext ctxt,
int features,
Reader r)
已过时。
|
StreamBasedParserBase(IOContext ctxt,
int features,
InputStream in,
byte[] inputBuffer,
int start,
int end,
boolean bufferRecyclable)
已过时。
|
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) |
限定符和类型 | 字段和说明 |
---|---|
protected IOContext |
UTF8Writer._context |
protected IOContext |
MergedStream._context |
限定符和类型 | 方法和说明 |
---|---|
abstract InputStream |
InputDecorator.decorate(IOContext ctxt,
byte[] src,
int offset,
int length)
Method called by
JsonFactory instance when
creating parser on given "raw" byte source. |
abstract InputStream |
InputDecorator.decorate(IOContext ctxt,
InputStream in)
Method called by
JsonFactory instance when
creating parser given an InputStream , when this decorator
has been registered. |
abstract OutputStream |
OutputDecorator.decorate(IOContext ctxt,
OutputStream out)
Method called by
JsonFactory instance when
creating generator for given OutputStream , when this decorator
has been registered. |
abstract Reader |
InputDecorator.decorate(IOContext ctxt,
Reader src)
Method called by
JsonFactory instance when
creating parser given an Reader , when this decorator
has been registered. |
abstract Writer |
OutputDecorator.decorate(IOContext ctxt,
Writer w)
Method called by
JsonFactory instance when
creating generator for given Writer , when this decorator
has been registered. |
构造器和说明 |
---|
MergedStream(IOContext context,
InputStream in,
byte[] buf,
int start,
int end) |
UTF32Reader(IOContext ctxt,
InputStream in,
byte[] buf,
int ptr,
int len,
boolean isBigEndian) |
UTF8Writer(IOContext ctxt,
OutputStream out) |
限定符和类型 | 字段和说明 |
---|---|
protected IOContext |
SmileGenerator._ioContext |
限定符和类型 | 方法和说明 |
---|---|
protected SmileGenerator |
SmileFactory._createJsonGenerator(OutputStream out,
IOContext ctxt) |
protected JsonGenerator |
SmileFactory._createJsonGenerator(Writer out,
IOContext ctxt)
Overridable factory method that actually instantiates desired
generator.
|
protected SmileParser |
SmileFactory._createJsonParser(byte[] data,
int offset,
int len,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected SmileParser |
SmileFactory._createJsonParser(InputStream in,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected JsonParser |
SmileFactory._createJsonParser(Reader r,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected Writer |
SmileFactory._createWriter(OutputStream out,
JsonEncoding enc,
IOContext ctxt) |
构造器和说明 |
---|
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) |
SmileParserBootstrapper(IOContext ctxt,
byte[] inputBuffer,
int inputStart,
int inputLen) |
SmileParserBootstrapper(IOContext ctxt,
InputStream in) |