程序包 | 说明 |
---|---|
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.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.util |
Utility classes used by Jackson Core functionality.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
JsonParser.canUseSchema(FormatSchema schema)
Method that can be used to verify that given schema can be used with
this parser (using
JsonParser.setSchema(org.codehaus.jackson.FormatSchema) ). |
boolean |
JsonGenerator.canUseSchema(FormatSchema schema)
Method that can be used to verify that given schema can be used with
this generator (using
JsonGenerator.setSchema(org.codehaus.jackson.FormatSchema) ). |
void |
JsonParser.setSchema(FormatSchema schema)
Method to call to make this parser use specified schema.
|
void |
JsonGenerator.setSchema(FormatSchema schema)
Method to call to make this generator use specified schema.
|
限定符和类型 | 字段和说明 |
---|---|
protected FormatSchema |
ObjectWriter._schema
When using data format that uses a schema, schema is passed
to generator.
|
protected FormatSchema |
ObjectReader._schema
When using data format that uses a schema, schema is passed
to parser.
|
限定符和类型 | 方法和说明 |
---|---|
ObjectReader |
ObjectMapper.reader(FormatSchema schema)
Factory method for constructing
ObjectReader that will
pass specific schema object to JsonParser used for
reading content. |
ObjectReader |
ObjectMapper.schemaBasedReader(FormatSchema schema)
已过时。
Since 1.9, use
ObjectMapper.reader(FormatSchema) instead. |
ObjectWriter |
ObjectMapper.schemaBasedWriter(FormatSchema schema)
已过时。
Since 1.9, use
ObjectMapper.writer(FilterProvider) instead. |
ObjectWriter |
ObjectWriter.withSchema(FormatSchema schema) |
ObjectReader |
ObjectReader.withSchema(FormatSchema schema)
Method for constructing a new instance with configuration that
passes specified
FormatSchema to JsonParser that
is constructed for parsing content. |
ObjectWriter |
ObjectMapper.writer(FormatSchema schema)
Factory method for constructing
ObjectWriter that will
pass specific schema object to JsonGenerator used for
writing content. |
构造器和说明 |
---|
ObjectReader(ObjectMapper mapper,
DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues) |
ObjectReader(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues)
Copy constructor used for building variations.
|
ObjectWriter(ObjectMapper mapper,
SerializationConfig config,
FormatSchema s)
Alternative constructor for initial instantiation.
|
ObjectWriter(ObjectWriter base,
SerializationConfig config,
JavaType rootType,
PrettyPrinter pp,
FormatSchema s)
Copy constructor used for building variations.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
JsonParserDelegate.canUseSchema(FormatSchema schema) |
boolean |
JsonGeneratorDelegate.canUseSchema(FormatSchema schema) |
void |
JsonParserDelegate.setSchema(FormatSchema schema) |
void |
JsonGeneratorDelegate.setSchema(FormatSchema schema) |