Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
JsonGenerator.copyCurrentEvent(JsonParser jp)
Method for copying contents of the current event that
the given parser instance points to.
|
abstract void |
JsonGenerator.copyCurrentStructure(JsonParser jp)
Method for copying contents of the current event
and following events that it encloses
the given parser instance points to.
|
abstract <T extends TreeNode> |
ObjectCodec.readTree(JsonParser jp)
Method to deserialize JSON content as tree expressed
using set of
TreeNode instances. |
abstract <T> T |
ObjectCodec.readValue(JsonParser 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(JsonParser 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(JsonParser jp,
TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
JsonParser.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 |
JsonParser.readValueAs(TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T extends TreeNode> |
JsonParser.readValueAsTree()
Method to deserialize JSON content into equivalent "tree model",
represented by root
TreeNode of resulting model. |
abstract <T> Iterator<T> |
ObjectCodec.readValues(JsonParser 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(JsonParser jp,
ResolvedType valueType)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
abstract <T> Iterator<T> |
ObjectCodec.readValues(JsonParser jp,
TypeReference<?> valueTypeRef)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
<T> Iterator<T> |
JsonParser.readValuesAs(Class<T> valueType)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
<T> Iterator<T> |
JsonParser.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 |
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.
|
abstract void |
ObjectCodec.writeValue(JsonGenerator jgen,
Object value)
Method to serialize given Java Object, using generator
provided.
|
Modifier and Type | Method and Description |
---|---|
protected char |
ParserMinimalBase._handleUnrecognizedCharacterEscape(char ch) |
void |
GeneratorBase.copyCurrentEvent(JsonParser jp) |
void |
GeneratorBase.copyCurrentStructure(JsonParser jp) |
void |
GeneratorBase.writeObject(Object value) |
void |
GeneratorBase.writeTree(TreeNode rootNode) |
Modifier and Type | Method and Description |
---|---|
void |
JsonGeneratorDelegate.copyCurrentEvent(JsonParser jp) |
void |
JsonGeneratorDelegate.copyCurrentStructure(JsonParser jp) |
void |
JsonGeneratorDelegate.writeObject(Object pojo) |
void |
JsonGeneratorDelegate.writeTree(TreeNode rootNode) |
Copyright © 2012-2013 FasterXML. All Rights Reserved.