Package | Description |
---|---|
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.deser |
Contains implementation classes of deserialization part of
data binding.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
DeserializationConfig config)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
JsonDeserializer<Object> rootDeser,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues,
DataFormatReaders dataFormatReaders)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
JsonFactory f)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectMapper._newReader(DeserializationConfig config)
Factory method sub-classes must override, to produce
ObjectReader
instances of proper sub-type |
protected ObjectReader |
ObjectMapper._newReader(DeserializationConfig config,
JavaType valueType,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues)
Factory method sub-classes must override, to produce
ObjectReader
instances of proper sub-type |
protected ObjectReader |
ObjectReader._with(DeserializationConfig newConfig) |
ObjectReader |
ObjectReader.at(JsonPointer pointer)
Convenience method to bind from
JsonPointer
JsonPointerBasedFilter is registered and will be used for parsing later. |
ObjectReader |
ObjectReader.at(String value)
Convenience method to bind from
JsonPointer . |
ObjectReader |
ObjectReader.forType(Class<?> valueType)
Method for constructing a new reader instance that is configured
to data bind into specified type.
|
ObjectReader |
ObjectReader.forType(JavaType valueType)
Method for constructing a new reader instance that is configured
to data bind into specified type.
|
ObjectReader |
ObjectReader.forType(TypeReference<?> valueTypeRef)
Method for constructing a new reader instance that is configured
to data bind into specified type.
|
ObjectReader |
ObjectMapper.reader()
Factory method for constructing
ObjectReader with
default settings. |
ObjectReader |
ObjectMapper.reader(Base64Variant defaultBase64)
Factory method for constructing
ObjectReader that will
use specified Base64 encoding variant for Base64-encoded binary data. |
ObjectReader |
ObjectMapper.reader(Class<?> type)
Deprecated.
Since 2.5, use
ObjectMapper.readerFor(Class) instead |
ObjectReader |
ObjectMapper.reader(ContextAttributes attrs)
Factory method for constructing
ObjectReader that will
use specified default attributes. |
ObjectReader |
ObjectMapper.reader(DeserializationFeature feature)
Factory method for constructing
ObjectReader with
specified feature enabled (compared to settings that this
mapper instance has). |
ObjectReader |
ObjectMapper.reader(DeserializationFeature first,
DeserializationFeature... other)
Factory method for constructing
ObjectReader with
specified features enabled (compared to settings that this
mapper instance has). |
ObjectReader |
ObjectMapper.reader(FormatSchema schema)
Factory method for constructing
ObjectReader that will
pass specific schema object to JsonParser used for
reading content. |
ObjectReader |
ObjectMapper.reader(InjectableValues injectableValues)
Factory method for constructing
ObjectReader that will
use specified injectable values. |
ObjectReader |
ObjectMapper.reader(JavaType type)
Deprecated.
Since 2.5, use
ObjectMapper.readerFor(JavaType) instead |
ObjectReader |
ObjectMapper.reader(JsonNodeFactory f)
Factory method for constructing
ObjectReader that will
use specified JsonNodeFactory for constructing JSON trees. |
ObjectReader |
ObjectMapper.reader(TypeReference<?> type)
Deprecated.
Since 2.5, use
ObjectMapper.readerFor(TypeReference) instead |
ObjectReader |
ObjectMapper.readerFor(Class<?> type)
Factory method for constructing
ObjectReader that will
read or update instances of specified type |
ObjectReader |
ObjectMapper.readerFor(JavaType type)
Factory method for constructing
ObjectReader that will
read or update instances of specified type |
ObjectReader |
ObjectMapper.readerFor(TypeReference<?> type)
Factory method for constructing
ObjectReader that will
read or update instances of specified type |
ObjectReader |
ObjectMapper.readerForUpdating(Object valueToUpdate)
Factory method for constructing
ObjectReader that will
update given Object (usually Bean, but can be a Collection or Map
as well, but NOT an array) with JSON data. |
ObjectReader |
ObjectMapper.readerWithView(Class<?> view)
Factory method for constructing
ObjectReader that will
deserialize objects using specified JSON View (filter). |
ObjectReader |
ObjectReader.with(Base64Variant defaultBase64) |
ObjectReader |
ObjectReader.with(ContextAttributes attrs) |
ObjectReader |
ObjectReader.with(DeserializationConfig config)
Mutant factory method that will construct a new instance that has
specified underlying
DeserializationConfig . |
ObjectReader |
ObjectReader.with(DeserializationFeature feature)
Method for constructing a new reader instance that is configured
with specified feature enabled.
|
ObjectReader |
ObjectReader.with(DeserializationFeature first,
DeserializationFeature... other)
Method for constructing a new reader instance that is configured
with specified features enabled.
|
ObjectReader |
ObjectReader.with(FormatFeature feature)
Method for constructing a new reader instance that is configured
with specified feature enabled.
|
ObjectReader |
ObjectReader.with(FormatSchema schema)
Method for constructing a new instance with configuration that
passes specified
FormatSchema to JsonParser that
is constructed for parsing content. |
ObjectReader |
ObjectReader.with(InjectableValues injectableValues)
Method for constructing a new instance with configuration that uses
passed
InjectableValues to provide injectable values. |
ObjectReader |
ObjectReader.with(JsonFactory f)
Method for constructing a new reader instance with configuration that uses
passed
JsonFactory for constructing underlying Readers. |
ObjectReader |
ObjectReader.with(JsonNodeFactory f)
Method for constructing a new reader instance with configuration that uses
passed
JsonNodeFactory for constructing JsonNode
instances. |
ObjectReader |
ObjectReader.with(JsonParser.Feature feature)
Method for constructing a new reader instance that is configured
with specified feature enabled.
|
ObjectReader |
ObjectReader.with(Locale l) |
ObjectReader |
ObjectReader.with(TimeZone tz) |
ObjectReader |
ObjectReader.withAttribute(Object key,
Object value) |
ObjectReader |
ObjectReader.withAttributes(Map<?,?> attrs) |
ObjectReader |
ObjectReader.withFeatures(DeserializationFeature... features)
Method for constructing a new reader instance that is configured
with specified features enabled.
|
ObjectReader |
ObjectReader.withFeatures(FormatFeature... features)
Method for constructing a new reader instance that is configured
with specified features enabled.
|
ObjectReader |
ObjectReader.withFeatures(JsonParser.Feature... features)
Method for constructing a new reader instance that is configured
with specified features enabled.
|
ObjectReader |
ObjectReader.withFormatDetection(DataFormatReaders readers)
Fluent factory method for constructing a reader that will try to
auto-detect underlying data format, using specified
DataFormatReaders . |
ObjectReader |
ObjectReader.withFormatDetection(ObjectReader... readers)
Fluent factory method for constructing a reader that will try to
auto-detect underlying data format, using specified list of
JsonFactory instances, and default DataFormatReaders settings
(for customized DataFormatReaders , you can construct instance yourself). |
ObjectReader |
ObjectReader.withHandler(DeserializationProblemHandler h) |
ObjectReader |
ObjectReader.without(DeserializationFeature feature)
Method for constructing a new reader instance that is configured
with specified feature disabled.
|
ObjectReader |
ObjectReader.without(DeserializationFeature first,
DeserializationFeature... other)
Method for constructing a new reader instance that is configured
with specified features disabled.
|
ObjectReader |
ObjectReader.without(FormatFeature feature)
Method for constructing a new reader instance that is configured
with specified feature disabled.
|
ObjectReader |
ObjectReader.without(JsonParser.Feature feature)
Method for constructing a new reader instance that is configured
with specified feature disabled.
|
ObjectReader |
ObjectReader.withoutAttribute(Object key) |
ObjectReader |
ObjectReader.withoutFeatures(DeserializationFeature... features)
Method for constructing a new reader instance that is configured
with specified features disabled.
|
ObjectReader |
ObjectReader.withoutFeatures(FormatFeature... features)
Method for constructing a new reader instance that is configured
with specified features disabled.
|
ObjectReader |
ObjectReader.withoutFeatures(JsonParser.Feature... features)
Method for constructing a new reader instance that is configured
with specified features disabled.
|
ObjectReader |
ObjectReader.withoutRootName()
Convenience method that is same as calling:
withRootName("")
which will forcibly prevent use of root name wrapping when writing
values with this ObjectReader . |
ObjectReader |
ObjectReader.withRootName(PropertyName rootName) |
ObjectReader |
ObjectReader.withRootName(String rootName)
Method for constructing a new instance with configuration that
specifies what root name to expect for "root name unwrapping".
|
ObjectReader |
ObjectReader.withType(Class<?> valueType)
Deprecated.
since 2.5 Use
forType(Class) instead |
ObjectReader |
ObjectReader.withType(JavaType valueType)
Deprecated.
since 2.5 Use
forType(JavaType) instead |
ObjectReader |
ObjectReader.withType(Type valueType)
Deprecated.
since 2.5 Use
forType(Class) instead |
ObjectReader |
ObjectReader.withType(TypeReference<?> valueTypeRef)
Deprecated.
since 2.5 Use
forType(TypeReference) instead |
ObjectReader |
ObjectReader.withValueToUpdate(Object value)
Method for constructing a new instance with configuration that
updates passed Object (as root value), instead of constructing
a new value.
|
ObjectReader |
ObjectReader.withView(Class<?> activeView)
Method for constructing a new instance with configuration that
uses specified View for filtering.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
DeserializationConfig config)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
JsonDeserializer<Object> rootDeser,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues,
DataFormatReaders dataFormatReaders)
Overridable factory method called by various "withXxx()" methods
|
protected ObjectReader |
ObjectReader._new(ObjectReader base,
JsonFactory f)
Overridable factory method called by various "withXxx()" methods
|
ObjectReader |
ObjectReader.withFormatDetection(ObjectReader... readers)
Fluent factory method for constructing a reader that will try to
auto-detect underlying data format, using specified list of
JsonFactory instances, and default DataFormatReaders settings
(for customized DataFormatReaders , you can construct instance yourself). |
Constructor and Description |
---|
ObjectReader(ObjectReader base,
DeserializationConfig config)
Copy constructor used when modifying simple feature flags
|
ObjectReader(ObjectReader base,
DeserializationConfig config,
JavaType valueType,
JsonDeserializer<Object> rootDeser,
Object valueToUpdate,
FormatSchema schema,
InjectableValues injectableValues,
DataFormatReaders dataFormatReaders)
Copy constructor used for building variations.
|
ObjectReader(ObjectReader base,
JsonFactory f) |
ObjectReader(ObjectReader base,
TokenFilter filter) |
Modifier and Type | Field and Description |
---|---|
protected ObjectReader |
DataFormatReaders.Match._match
Factory that produced sufficient match (if any)
|
protected ObjectReader[] |
DataFormatReaders._readers
Ordered list of readers which both represent data formats to
detect (in precedence order, starting with highest) and contain
factories used for actual detection.
|
Modifier and Type | Method and Description |
---|---|
ObjectReader |
DataFormatReaders.Match.getReader()
Accessor for
JsonFactory that represents format that data matched. |
Modifier and Type | Method and Description |
---|---|
DataFormatReaders.Match |
DataFormatReaders.AccessorForReader.createMatcher(ObjectReader match,
MatchStrength matchStrength) |
DataFormatReaders |
DataFormatReaders.with(ObjectReader[] readers) |
Constructor and Description |
---|
DataFormatReaders(ObjectReader... detectors) |
Match(InputStream in,
byte[] buffered,
int bufferedStart,
int bufferedLength,
ObjectReader match,
MatchStrength strength) |
Constructor and Description |
---|
DataFormatReaders(Collection<ObjectReader> detectors) |
Copyright © 2008–2018 FasterXML. All rights reserved.