Uses of Class
com.fasterxml.jackson.databind.ObjectReader
Packages that use ObjectReader
Package
Description
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.Contains implementation classes of deserialization part of
data binding.
-
Uses of ObjectReader in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectReaderModifier and TypeMethodDescriptionprotected ObjectReader
ObjectReader._new
(ObjectReader base, com.fasterxml.jackson.core.JsonFactory f) Overridable factory method called by various "withXxx()" methodsprotected ObjectReader
ObjectReader._new
(ObjectReader base, DeserializationConfig config) Overridable factory method called by various "withXxx()" methodsprotected ObjectReader
ObjectReader._new
(ObjectReader base, DeserializationConfig config, JavaType valueType, JsonDeserializer<Object> rootDeser, Object valueToUpdate, com.fasterxml.jackson.core.FormatSchema schema, InjectableValues injectableValues, DataFormatReaders dataFormatReaders) Overridable factory method called by various "withXxx()" methodsprotected ObjectReader
ObjectMapper._newReader
(DeserializationConfig config) Factory method sub-classes must override, to produceObjectReader
instances of proper sub-typeprotected ObjectReader
ObjectMapper._newReader
(DeserializationConfig config, JavaType valueType, Object valueToUpdate, com.fasterxml.jackson.core.FormatSchema schema, InjectableValues injectableValues) Factory method sub-classes must override, to produceObjectReader
instances of proper sub-typeprotected ObjectReader
ObjectReader._with
(DeserializationConfig newConfig) ObjectReader.at
(com.fasterxml.jackson.core.JsonPointer pointer) Convenience method to bind fromJsonPointer
JsonPointerBasedFilter
is registered and will be used for parsing later.Convenience method to bind fromJsonPointer
.ObjectReader.forType
(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef) Method for constructing a new reader instance that is configured to data bind into specified type.Method for constructing a new reader instance that is configured to data bind into specified type.Method for constructing a new reader instance that is configured to data bind into specified type.Method for constructing a new reader instance that is configured to data bind into specified type.ObjectMapper.reader()
Factory method for constructingObjectReader
with default settings.ObjectMapper.reader
(com.fasterxml.jackson.core.Base64Variant defaultBase64) Factory method for constructingObjectReader
that will use specified Base64 encoding variant for Base64-encoded binary data.ObjectMapper.reader
(com.fasterxml.jackson.core.FormatSchema schema) Factory method for constructingObjectReader
that will pass specific schema object toJsonParser
used for reading content.ObjectMapper.reader
(com.fasterxml.jackson.core.type.TypeReference<?> type) Deprecated.ObjectMapper.reader
(ContextAttributes attrs) Factory method for constructingObjectReader
that will use specified default attributes.ObjectMapper.reader
(DeserializationFeature feature) Factory method for constructingObjectReader
with specified feature enabled (compared to settings that this mapper instance has).ObjectMapper.reader
(DeserializationFeature first, DeserializationFeature... other) Factory method for constructingObjectReader
with specified features enabled (compared to settings that this mapper instance has).ObjectMapper.reader
(InjectableValues injectableValues) Factory method for constructingObjectReader
that will use specified injectable values.Deprecated.Since 2.5, useObjectMapper.readerFor(JavaType)
insteadObjectMapper.reader
(JsonNodeFactory nodeFactory) Factory method for constructingObjectReader
that will use specifiedJsonNodeFactory
for constructing JSON trees.Deprecated.Since 2.5, useObjectMapper.readerFor(Class)
insteadObjectMapper.readerFor
(com.fasterxml.jackson.core.type.TypeReference<?> typeRef) Factory method for constructingObjectReader
that will read or update instances of specified typeFactory method for constructingObjectReader
that will read or update instances of specified typeFactory method for constructingObjectReader
that will read or update instances of specified typeObjectMapper.readerForArrayOf
(Class<?> type) Factory method for constructingObjectReader
that will read values of a typeList<type>
.ObjectMapper.readerForListOf
(Class<?> type) Factory method for constructingObjectReader
that will read or update instances of a typeList<type>
.ObjectMapper.readerForMapOf
(Class<?> type) Factory method for constructingObjectReader
that will read or update instances of a typeMap<String, type>
Functionally same as:ObjectMapper.readerForUpdating
(Object valueToUpdate) Factory method for constructingObjectReader
that will update given Object (usually Bean, but can be a Collection or Map as well, but NOT an array) with JSON data.ObjectMapper.readerWithView
(Class<?> view) Factory method for constructingObjectReader
that will deserialize objects using specified JSON View (filter).ObjectReader.with
(com.fasterxml.jackson.core.Base64Variant defaultBase64) ObjectReader.with
(com.fasterxml.jackson.core.FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with
(com.fasterxml.jackson.core.FormatSchema schema) Method for constructing a new instance with configuration that passes specifiedFormatSchema
toJsonParser
that is constructed for parsing content.ObjectReader.with
(com.fasterxml.jackson.core.JsonFactory f) Method for constructing a new reader instance with configuration that uses passedJsonFactory
for constructing underlying Readers.ObjectReader.with
(com.fasterxml.jackson.core.JsonParser.Feature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with
(com.fasterxml.jackson.core.StreamReadFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with
(ContextAttributes attrs) ObjectReader.with
(DatatypeFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with
(DeserializationConfig config) Mutant factory method that will construct a new instance that has specified underlyingDeserializationConfig
.ObjectReader.with
(DeserializationFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with
(DeserializationFeature first, DeserializationFeature... other) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.with
(InjectableValues injectableValues) Method for constructing a new instance with configuration that uses passedInjectableValues
to provide injectable values.ObjectReader.with
(JsonNodeFactory f) Method for constructing a new reader instance with configuration that uses passedJsonNodeFactory
for constructingJsonNode
instances.ObjectReader.withAttribute
(Object key, Object value) ObjectReader.withAttributes
(Map<?, ?> attrs) ObjectReader.withFeatures
(com.fasterxml.jackson.core.FormatFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.withFeatures
(com.fasterxml.jackson.core.JsonParser.Feature... features) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.withFeatures
(DatatypeFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.withFeatures
(DeserializationFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.withFormatDetection
(DataFormatReaders readers) Fluent factory method for constructing a reader that will try to auto-detect underlying data format, using specifiedDataFormatReaders
.ObjectReader.withFormatDetection
(ObjectReader... readers) Fluent factory method for constructing a reader that will try to auto-detect underlying data format, using specified list ofJsonFactory
instances, and defaultDataFormatReaders
settings (for customizedDataFormatReaders
, you can construct instance yourself).ObjectReader.withHandler
(DeserializationProblemHandler h) ObjectReader.without
(com.fasterxml.jackson.core.FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without
(com.fasterxml.jackson.core.JsonParser.Feature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without
(com.fasterxml.jackson.core.StreamReadFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without
(DatatypeFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without
(DeserializationFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without
(DeserializationFeature first, DeserializationFeature... other) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutAttribute
(Object key) ObjectReader.withoutFeatures
(com.fasterxml.jackson.core.FormatFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutFeatures
(com.fasterxml.jackson.core.JsonParser.Feature... features) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutFeatures
(DatatypeFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutFeatures
(DeserializationFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutRootName()
Convenience method that is same as calling:withRootName("")
which will forcibly prevent use of root name wrapping when writing values with thisObjectReader
.ObjectReader.withRootName
(PropertyName rootName) ObjectReader.withRootName
(String rootName) Method for constructing a new instance with configuration that specifies what root name to expect for "root name unwrapping".ObjectReader.withType
(com.fasterxml.jackson.core.type.TypeReference<?> valueTypeRef) Deprecated.since 2.5 UseforType(TypeReference)
insteadDeprecated.since 2.5 UseforType(JavaType)
insteadDeprecated.since 2.5 UseforType(Class)
insteadDeprecated.since 2.5 UseforType(java.lang.reflect.Type)
insteadObjectReader.withValueToUpdate
(Object value) Method for constructing a new instance with configuration that updates passed Object (as root value), instead of constructing a new value.Method for constructing a new instance with configuration that uses specified View for filtering.Methods in com.fasterxml.jackson.databind with parameters of type ObjectReaderModifier and TypeMethodDescriptionprotected ObjectReader
ObjectReader._new
(ObjectReader base, com.fasterxml.jackson.core.JsonFactory f) Overridable factory method called by various "withXxx()" methodsprotected ObjectReader
ObjectReader._new
(ObjectReader base, DeserializationConfig config) Overridable factory method called by various "withXxx()" methodsprotected ObjectReader
ObjectReader._new
(ObjectReader base, DeserializationConfig config, JavaType valueType, JsonDeserializer<Object> rootDeser, Object valueToUpdate, com.fasterxml.jackson.core.FormatSchema schema, InjectableValues injectableValues, DataFormatReaders dataFormatReaders) Overridable factory method called by various "withXxx()" methodsObjectReader.withFormatDetection
(ObjectReader... readers) Fluent factory method for constructing a reader that will try to auto-detect underlying data format, using specified list ofJsonFactory
instances, and defaultDataFormatReaders
settings (for customizedDataFormatReaders
, you can construct instance yourself).Constructors in com.fasterxml.jackson.databind with parameters of type ObjectReaderModifierConstructorDescriptionprotected
ObjectReader
(ObjectReader base, com.fasterxml.jackson.core.filter.TokenFilter filter) protected
ObjectReader
(ObjectReader base, com.fasterxml.jackson.core.JsonFactory f) protected
ObjectReader
(ObjectReader base, DeserializationConfig config) Copy constructor used when modifying simple feature flagsprotected
ObjectReader
(ObjectReader base, DeserializationConfig config, JavaType valueType, JsonDeserializer<Object> rootDeser, Object valueToUpdate, com.fasterxml.jackson.core.FormatSchema schema, InjectableValues injectableValues, DataFormatReaders dataFormatReaders) Copy constructor used for building variations. -
Uses of ObjectReader in com.fasterxml.jackson.databind.deser
Fields in com.fasterxml.jackson.databind.deser declared as ObjectReaderModifier and TypeFieldDescriptionprotected final ObjectReader
DataFormatReaders.Match._match
Factory that produced sufficient match (if any)protected final 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.Methods in com.fasterxml.jackson.databind.deser that return ObjectReaderModifier and TypeMethodDescriptionDataFormatReaders.Match.getReader()
Accessor forJsonFactory
that represents format that data matched.Methods in com.fasterxml.jackson.databind.deser with parameters of type ObjectReaderModifier and TypeMethodDescriptionDataFormatReaders.AccessorForReader.createMatcher
(ObjectReader match, com.fasterxml.jackson.core.format.MatchStrength matchStrength) DataFormatReaders.with
(ObjectReader[] readers) Constructors in com.fasterxml.jackson.databind.deser with parameters of type ObjectReaderModifierConstructorDescriptionDataFormatReaders
(ObjectReader... detectors) protected
Match
(InputStream in, byte[] buffered, int bufferedStart, int bufferedLength, ObjectReader match, com.fasterxml.jackson.core.format.MatchStrength strength) Constructor parameters in com.fasterxml.jackson.databind.deser with type arguments of type ObjectReader
ObjectMapper.readerFor(TypeReference)
instead