| 程序包 | 说明 |
|---|---|
| org.hotwheel.json.impl.jackson |
| 限定符和类型 | 类和说明 |
|---|---|
class |
JsonGenerationException
Exception type for exceptions during JSON writing, such as trying
to output content in wrong context (non-matching end-array or end-object,
for example).
|
class |
JsonParseException
Exception type for parsing problems, used when non-well-formed content
(content that does not conform to JSON syntax as per specification)
is encountered.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
JsonGenerator.copyCurrentEvent(JacksonParser jp)
Method for copying contents of the current event that
the given parser instance points to.
|
void |
JsonGeneratorDelegate.copyCurrentEvent(JacksonParser jp) |
void |
GeneratorBase.copyCurrentEvent(JacksonParser jp) |
abstract void |
JsonGenerator.copyCurrentStructure(JacksonParser jp)
Method for copying contents of the current event
and following events that it encloses
the given parser instance points to.
|
void |
JsonGeneratorDelegate.copyCurrentStructure(JacksonParser jp) |
void |
GeneratorBase.copyCurrentStructure(JacksonParser jp) |
abstract <T extends TreeNode> |
ObjectCodec.readTree(JacksonParser jp)
Method to deserialize JSON content as tree expressed
using set of
TreeNode instances. |
abstract <T> T |
ObjectCodec.readValue(JacksonParser jp,
Class<T> valueType)
Method to deserialize JSON content into a non-container
type (it can be an array type, however): typically a bean, array
or a wrapper type (like
Boolean). |
abstract <T> T |
ObjectCodec.readValue(JacksonParser jp,
ResolvedType valueType)
Method to deserialize JSON content into a POJO, type specified
with fully resolved type object (so it can be a generic type,
including containers like
Collection and
Map). |
abstract <T> T |
ObjectCodec.readValue(JacksonParser jp,
TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
JacksonParser.readValueAs(Class<T> valueType)
Method to deserialize JSON content into a non-container
type (it can be an array type, however): typically a bean, array
or a wrapper type (like
Boolean). |
<T> T |
JacksonParser.readValueAs(TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T extends TreeNode> |
JacksonParser.readValueAsTree()
Method to deserialize JSON content into equivalent "tree model",
represented by root
TreeNode of resulting model. |
abstract <T> Iterator<T> |
ObjectCodec.readValues(JacksonParser jp,
Class<T> valueType)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
abstract <T> Iterator<T> |
ObjectCodec.readValues(JacksonParser jp,
ResolvedType valueType)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
abstract <T> Iterator<T> |
ObjectCodec.readValues(JacksonParser jp,
TypeReference<?> valueTypeRef)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
<T> Iterator<T> |
JacksonParser.readValuesAs(Class<T> valueType)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
<T> Iterator<T> |
JacksonParser.readValuesAs(TypeReference<?> valueTypeRef)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
abstract <T> T |
ObjectCodec.treeToValue(TreeNode n,
Class<T> valueType)
Convenience method for converting given JSON tree into instance of specified
value type.
|
abstract void |
JsonGenerator.writeObject(Object pojo)
Method for writing given Java object (POJO) as Json.
|
void |
JsonGeneratorDelegate.writeObject(Object pojo) |
void |
GeneratorBase.writeObject(Object value) |
void |
JsonGenerator.writeObjectField(String fieldName,
Object pojo)
Convenience method for outputting a field entry ("member")
that has contents of specific Java object as its value.
|
abstract void |
JsonGenerator.writeTree(TreeNode rootNode)
Method for writing given JSON tree (expressed as a tree
where given JsonNode is the root) using this generator.
|
void |
JsonGeneratorDelegate.writeTree(TreeNode rootNode) |
void |
GeneratorBase.writeTree(TreeNode rootNode) |
abstract void |
ObjectCodec.writeValue(JsonGenerator jgen,
Object value)
Method to serialize given Java Object, using generator
provided.
|
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.