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.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).
|
Modifier and Type | Method and Description |
---|---|
static JsonEncoding |
JsonEncoding.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonEncoding[] |
JsonEncoding.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
JsonEncoding |
ByteSourceBootstrapper.detectEncoding()
Method that should be called after constructing an instace.
|
Modifier and Type | Field and Description |
---|---|
protected JsonEncoding |
IOContext._encoding
Encoding used by the underlying stream, if known.
|
Modifier and Type | Method and Description |
---|---|
JsonEncoding |
IOContext.getEncoding() |
Modifier and Type | Method and Description |
---|---|
void |
IOContext.setEncoding(JsonEncoding enc) |
Modifier and Type | Method and Description |
---|---|
protected JsonEncoding |
JacksonJsonProvider.findEncoding(MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders)
Helper method to use for determining desired output encoding.
|
Modifier and Type | Method and Description |
---|---|
protected Writer |
SmileFactory._createWriter(OutputStream out,
JsonEncoding enc,
IOContext ctxt) |
SmileGenerator |
SmileFactory.createJsonGenerator(OutputStream out,
JsonEncoding enc)
note: co-variant return type
|