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
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.type |
Contains classes needed for type introspection, mostly used by data binding
functionality.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.cfg |
Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind ). |
com.fasterxml.jackson.databind.type |
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
ObjectCodec.readValue(JsonParser p,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
JsonParser.readValueAs(TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
abstract <T> Iterator<T> |
ObjectCodec.readValues(JsonParser p,
TypeReference<T> valueTypeRef)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
<T> Iterator<T> |
JsonParser.readValuesAs(TypeReference<T> valueTypeRef)
Method for reading sequence of Objects from parser stream,
all with same specified value type.
|
Modifier and Type | Method and Description |
---|---|
int |
TypeReference.compareTo(TypeReference<T> o)
The only reason we define this method (and require implementation
of
Comparable ) is to prevent constructing a
reference without type information. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ObjectMapper.convertValue(Object fromValue,
TypeReference<T> toValueTypeRef)
|
ObjectReader |
ObjectReader.forType(TypeReference<?> valueTypeRef)
Method for constructing a new reader instance that is configured
to data bind into specified type.
|
ObjectWriter |
ObjectWriter.forType(TypeReference<?> rootType)
Method that will construct a new instance that uses specific type
as the root type for serialization, instead of runtime dynamic
type of the root object itself.
|
ObjectReader |
ObjectMapper.reader(TypeReference<?> type)
Deprecated.
Since 2.5, use
ObjectMapper.readerFor(TypeReference) instead |
ObjectReader |
ObjectMapper.readerFor(TypeReference<?> type)
Factory method for constructing
ObjectReader that will
read or update instances of specified type |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(byte[] src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(File src,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(InputStream src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectReader.readValue(JsonParser p,
TypeReference<T> valueTypeRef)
Convenience method that binds content read using given parser, using
configuration of this reader, except that expected value type
is specified with the call (instead of currently configured root type).
|
<T> T |
ObjectMapper.readValue(JsonParser p,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(Reader src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(String content,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(URL src,
TypeReference<T> valueTypeRef)
Same as
ObjectMapper.readValue(java.net.URL, Class) except that target specified by TypeReference . |
<T> Iterator<T> |
ObjectReader.readValues(JsonParser p,
TypeReference<T> valueTypeRef)
Convenience method that is equivalent to:
|
<T> MappingIterator<T> |
ObjectMapper.readValues(JsonParser p,
TypeReference<T> valueTypeRef)
Method for reading sequence of Objects from parser stream.
|
ObjectReader |
ObjectReader.withType(TypeReference<?> valueTypeRef)
Deprecated.
since 2.5 Use
ObjectReader.forType(TypeReference) instead |
ObjectWriter |
ObjectWriter.withType(TypeReference<?> rootType)
Deprecated.
since 2.5 Use
ObjectWriter.forType(TypeReference) instead |
ObjectWriter |
ObjectMapper.writerFor(TypeReference<?> rootType)
Factory method for constructing
ObjectWriter that will
serialize objects using specified root type, instead of actual
runtime type of value. |
ObjectWriter |
ObjectMapper.writerWithType(TypeReference<?> rootType)
Deprecated.
Since 2.5, use
ObjectMapper.writerFor(TypeReference) instead |
Modifier and Type | Method and Description |
---|---|
JavaType |
MapperConfig.constructType(TypeReference<?> valueTypeRef)
Helper method that will construct
JavaType for given
type reference
This is a simple short-cut for: |
Modifier and Type | Method and Description |
---|---|
JavaType |
TypeFactory.constructType(TypeReference<?> typeRef) |
Copyright © 2020 JBoss by Red Hat. All rights reserved.