程序包 | 说明 |
---|---|
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.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
限定符和类型 | 方法和说明 |
---|---|
static JsonEncoding |
JsonEncoding.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonEncoding[] |
JsonEncoding.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
protected Writer |
JsonFactory._createWriter(OutputStream out,
JsonEncoding enc,
IOContext ctxt) |
JsonGenerator |
JsonFactory.createJsonGenerator(File f,
JsonEncoding enc)
Method for constructing JSON generator for writing JSON content
to specified file, overwriting contents it might have (or creating
it if such file does not yet exist).
|
JsonGenerator |
JsonFactory.createJsonGenerator(OutputStream out,
JsonEncoding enc)
Method for constructing JSON generator for writing JSON content
using specified output stream.
|
限定符和类型 | 方法和说明 |
---|---|
JsonEncoding |
ByteSourceBootstrapper.detectEncoding()
Method that should be called after constructing an instace.
|
限定符和类型 | 字段和说明 |
---|---|
protected JsonEncoding |
IOContext._encoding
Encoding used by the underlying stream, if known.
|
限定符和类型 | 方法和说明 |
---|---|
JsonEncoding |
IOContext.getEncoding() |
限定符和类型 | 方法和说明 |
---|---|
void |
IOContext.setEncoding(JsonEncoding enc) |
限定符和类型 | 方法和说明 |
---|---|
protected JsonEncoding |
JacksonJsonProvider.findEncoding(MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders)
Helper method to use for determining desired output encoding.
|
限定符和类型 | 方法和说明 |
---|---|
protected Writer |
SmileFactory._createWriter(OutputStream out,
JsonEncoding enc,
IOContext ctxt) |
SmileGenerator |
SmileFactory.createJsonGenerator(OutputStream out,
JsonEncoding enc)
note: co-variant return type
|