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.
Jackson-based Jakarta-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
-
Uses of ObjectReader in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ObjectReaderModifier and TypeMethodDescriptionprotected ObjectReaderObjectReader._new(ObjectReader base, JsonFactory f) Overridable factory method called by various "withXxx()" methodsprotected ObjectReaderObjectReader._new(ObjectReader base, DeserializationConfig config) Overridable factory method called by various "withXxx()" methodsprotected ObjectReaderObjectReader._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()" methodsprotected ObjectReaderObjectMapper._newReader(DeserializationConfig config) Factory method sub-classes must override, to produceObjectReaderinstances of proper sub-typeprotected ObjectReaderObjectMapper._newReader(DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Factory method sub-classes must override, to produceObjectReaderinstances of proper sub-typeprotected ObjectReaderObjectReader._with(DeserializationConfig newConfig) ObjectReader.at(JsonPointer pointer) Convenience method to bind fromJsonPointerJsonPointerBasedFilteris registered and will be used for parsing later.Convenience method to bind fromJsonPointer.ObjectReader.forType(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 constructingObjectReaderwith default settings.ObjectMapper.reader(Base64Variant defaultBase64) Factory method for constructingObjectReaderthat will use specified Base64 encoding variant for Base64-encoded binary data.ObjectMapper.reader(FormatSchema schema) Factory method for constructingObjectReaderthat will pass specific schema object toJsonParserused for reading content.ObjectMapper.reader(TypeReference<?> type) Deprecated.ObjectMapper.reader(ContextAttributes attrs) Factory method for constructingObjectReaderthat will use specified default attributes.ObjectMapper.reader(DeserializationFeature feature) Factory method for constructingObjectReaderwith specified feature enabled (compared to settings that this mapper instance has).ObjectMapper.reader(DeserializationFeature first, DeserializationFeature... other) Factory method for constructingObjectReaderwith specified features enabled (compared to settings that this mapper instance has).ObjectMapper.reader(InjectableValues injectableValues) Factory method for constructingObjectReaderthat will use specified injectable values.Deprecated.Since 2.5, useObjectMapper.readerFor(JavaType)insteadObjectMapper.reader(JsonNodeFactory nodeFactory) Factory method for constructingObjectReaderthat will use specifiedJsonNodeFactoryfor constructing JSON trees.Deprecated.Since 2.5, useObjectMapper.readerFor(Class)insteadObjectMapper.readerFor(TypeReference<?> typeRef) Factory method for constructingObjectReaderthat will read or update instances of specified typeFactory method for constructingObjectReaderthat will read or update instances of specified typeFactory method for constructingObjectReaderthat will read or update instances of specified typeObjectMapper.readerForArrayOf(Class<?> type) Factory method for constructingObjectReaderthat will read values of a typeList<type>.ObjectMapper.readerForListOf(Class<?> type) Factory method for constructingObjectReaderthat will read or update instances of a typeList<type>.ObjectMapper.readerForMapOf(Class<?> type) Factory method for constructingObjectReaderthat will read or update instances of a typeMap<String, type>Functionally same as:ObjectMapper.readerForUpdating(Object valueToUpdate) Factory method for constructingObjectReaderthat 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 constructingObjectReaderthat will deserialize objects using specified JSON View (filter).ObjectReader.with(Base64Variant defaultBase64) ObjectReader.with(FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with(FormatSchema schema) Method for constructing a new instance with configuration that passes specifiedFormatSchematoJsonParserthat is constructed for parsing content.ObjectReader.with(JsonFactory f) Method for constructing a new reader instance with configuration that uses passedJsonFactoryfor constructing underlying Readers.ObjectReader.with(JsonParser.Feature feature) Method for constructing a new reader instance that is configured with specified feature enabled.ObjectReader.with(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 passedInjectableValuesto provide injectable values.ObjectReader.with(JsonNodeFactory f) Method for constructing a new reader instance with configuration that uses passedJsonNodeFactoryfor constructingJsonNodeinstances.ObjectReader.withAttribute(Object key, Object value) ObjectReader.withAttributes(Map<?, ?> attrs) ObjectReader.withFeatures(FormatFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.ObjectReader.withFeatures(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 ofJsonFactoryinstances, and defaultDataFormatReaderssettings (for customizedDataFormatReaders, you can construct instance yourself).ObjectReader.withHandler(DeserializationProblemHandler h) ObjectReader.without(FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without(JsonParser.Feature feature) Method for constructing a new reader instance that is configured with specified feature disabled.ObjectReader.without(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(FormatFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.ObjectReader.withoutFeatures(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(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 ObjectReaderObjectReader._new(ObjectReader base, JsonFactory f) Overridable factory method called by various "withXxx()" methodsprotected ObjectReaderObjectReader._new(ObjectReader base, DeserializationConfig config) Overridable factory method called by various "withXxx()" methodsprotected ObjectReaderObjectReader._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()" methodsObjectReader.withFormatDetection(ObjectReader... readers) Fluent factory method for constructing a reader that will try to auto-detect underlying data format, using specified list ofJsonFactoryinstances, and defaultDataFormatReaderssettings (for customizedDataFormatReaders, you can construct instance yourself).Constructors in com.fasterxml.jackson.databind with parameters of type ObjectReaderModifierConstructorDescriptionprotectedObjectReader(ObjectReader base, TokenFilter filter) protectedObjectReader(ObjectReader base, JsonFactory f) protectedObjectReader(ObjectReader base, DeserializationConfig config) Copy constructor used when modifying simple feature flagsprotectedObjectReader(ObjectReader base, DeserializationConfig config, JavaType valueType, JsonDeserializer<Object> rootDeser, Object valueToUpdate, 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 ObjectReaderDataFormatReaders.Match._matchFactory that produced sufficient match (if any)protected final ObjectReader[]DataFormatReaders._readersOrdered 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 forJsonFactorythat represents format that data matched.Methods in com.fasterxml.jackson.databind.deser with parameters of type ObjectReaderModifier and TypeMethodDescriptionDataFormatReaders.AccessorForReader.createMatcher(ObjectReader match, MatchStrength matchStrength) DataFormatReaders.with(ObjectReader[] readers) Constructors in com.fasterxml.jackson.databind.deser with parameters of type ObjectReaderModifierConstructorDescriptionDataFormatReaders(ObjectReader... detectors) protectedMatch(InputStream in, byte[] buffered, int bufferedStart, int bufferedLength, ObjectReader match, MatchStrength strength) Constructor parameters in com.fasterxml.jackson.databind.deser with type arguments of type ObjectReader -
Uses of ObjectReader in com.fasterxml.jackson.jakarta.rs.base
Methods in com.fasterxml.jackson.jakarta.rs.base with parameters of type ObjectReaderModifier and TypeMethodDescriptionprotected abstract EP_CONFIGProviderBase._configForReading(ObjectReader reader, Annotation[] annotations) protected JsonParserProviderBase._createParser(ObjectReader reader, InputStream rawStream) Overridable helper method called to create aJsonParserfor reading contents of given rawInputStream. -
Uses of ObjectReader in com.fasterxml.jackson.jakarta.rs.cfg
Fields in com.fasterxml.jackson.jakarta.rs.cfg declared as ObjectReaderMethods in com.fasterxml.jackson.jakarta.rs.cfg that return ObjectReaderModifier and TypeMethodDescriptionfinal ObjectReaderEndpointConfigBase.getReader()abstract ObjectReaderObjectReaderModifier.modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, String> httpHeaders, JavaType resultType, ObjectReader r, JsonParser p) Method called to let modifier make any changes it wants to to objects used for reading request objects for specified endpoint.Methods in com.fasterxml.jackson.jakarta.rs.cfg with parameters of type ObjectReaderModifier and TypeMethodDescriptionprotected THISEndpointConfigBase.initReader(ObjectReader reader) abstract ObjectReaderObjectReaderModifier.modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, String> httpHeaders, JavaType resultType, ObjectReader r, JsonParser p) Method called to let modifier make any changes it wants to to objects used for reading request objects for specified endpoint. -
Uses of ObjectReader in com.fasterxml.jackson.jakarta.rs.json
Methods in com.fasterxml.jackson.jakarta.rs.json with parameters of type ObjectReaderModifier and TypeMethodDescriptionprotected JsonEndpointConfigJacksonJsonProvider._configForReading(ObjectReader reader, Annotation[] annotations) static JsonEndpointConfigJsonEndpointConfig.forReading(ObjectReader reader, Annotation[] annotations)
ObjectMapper.readerFor(TypeReference)instead