- All Implemented Interfaces:
tools.jackson.core.TreeCodec<JsonNode>,tools.jackson.core.Versioned
Uses "mutant factory" pattern so that instances are immutable
(and thus fully thread-safe with no external synchronization);
new instances are constructed for different configurations.
Instances are initially constructed by ObjectMapper and can be
reused, shared, cached; both because of thread-safety and because
instances are relatively light-weight.
NOTE: this class is NOT meant as sub-classable by users. It is left as non-final mostly to allow frameworks that require byte code generation for proxying and similar use cases, but there is no expectation that functionality should be extended by sub-classing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DeserializationConfigGeneral serialization configuration settings; while immutable, can use copy-constructor to create modified instances as necessary.protected final DeserializationContextsBlueprint instance of deserialization context; used for creating actual instance when needed.protected final InjectableValuesValues that can be injected during deserialization, if any.protected final tools.jackson.core.TokenStreamFactoryFactory used for constructingJsonParsersprotected final ValueDeserializer<Object>We may pre-fetch deserializer as soon as_valueTypeis known, and if so, reuse it afterwards.protected final ConcurrentHashMap<JavaType,ValueDeserializer<Object>> Root-level cached deserializers.protected final tools.jackson.core.FormatSchemaWhen using data format that uses a schema, schema is passed to parser.protected final booleanFlag that indicates whether root values are expected to be unwrapped or notprotected final ObjectInstance to update with data binding; if any.protected final JavaTypeDeclared type of value to instantiate during deserialization.protected static final JavaType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectReader(ObjectMapper mapper, DeserializationConfig config) Constructor used byObjectMapperfor initial instantiationprotectedObjectReader(ObjectMapper mapper, DeserializationConfig config, JavaType valueType, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Constructor called when a root deserializer should be fetched based on other configuration.protectedObjectReader(ObjectReader base, tools.jackson.core.filter.TokenFilter filter) protectedObjectReader(ObjectReader base, DeserializationConfig config) Copy constructor used when modifying simple feature flagsprotectedObjectReader(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Copy constructor used for building variations. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void_assertNotNull(String paramName, Object src) protected Object_bind(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p, Object valueToUpdate) Actual implementation of value reading+binding operation.protected Object_bindAndClose(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) protected final JsonNode_bindAndCloseAsTree(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) protected <T> MappingIterator<T>_bindAndReadValues(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) protected final JsonNode_bindAsTree(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) protected final JsonNode_bindAsTreeOrNull(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) Same as_bindAsTree(tools.jackson.databind.deser.DeserializationContextExt, tools.jackson.core.JsonParser)except end-of-input is reported by returningnull, not "missing node"protected <T> T_collectingBind(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) Internal helper for problem-collecting deserialization that does NOT close the parser.protected <T> T_collectingBindAndClose(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) Internal helper for problem-collecting deserialization that DOES close the parser.protected tools.jackson.core.JsonParser_considerFilter(tools.jackson.core.JsonParser p, boolean multiValue) Consider filter when creating JsonParser.protected DeserializationContextExtInternal helper method called to create an instance ofDeserializationContextfor deserializing a single root value.protected DeserializationContextExt_deserializationContext(tools.jackson.core.JsonParser p) protected ValueDeserializer<Object>Method called to locate deserializer for the passed root-level value.protected ValueDeserializer<Object>protected void_initForMultiRead(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) Alternative to_initForReading(tools.jackson.databind.deser.DeserializationContextExt, tools.jackson.core.JsonParser)used in cases where reading of multiple values means that we may or may not want to advance the stream, but need to do other initialization.protected tools.jackson.core.JsonToken_initForReading(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) protected ObjectReader_new(ObjectReader base, DeserializationConfig config) Factory method called by various "withXxx()" methodsprotected ObjectReader_new(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Factory method called by various "withXxx()" methodsprotected <T> MappingIterator<T>_newIterator(tools.jackson.core.JsonParser p, DeserializationContext ctxt, ValueDeserializer<?> deser, boolean parserManaged) Factory method used to createMappingIteratorinstances; either default, or custom subtype.protected ValueDeserializer<Object>_prefetchRootDeserializer(JavaType valueType) Method called to locate deserializer ahead of time, if permitted by configuration.protected final void_verifyNoTrailingTokens(tools.jackson.core.JsonParser p, DeserializationContext ctxt, JavaType bindType) protected void_verifySchemaType(tools.jackson.core.FormatSchema schema) protected final ObjectReader_with(DeserializationConfig newConfig) Convenience method to bind fromJsonPointer.at(tools.jackson.core.JsonPointer pointer) Convenience method to bind fromJsonPointerJsonPointerBasedFilteris registered and will be used for parsing later.booleanNode(boolean b) constructType(Type type) Convenience method for constructingJavaTypeout of given type (typicallyjava.lang.Class), but without explicit context.constructType(tools.jackson.core.type.TypeReference<?> typeReference) Convenience method for constructingJavaTypeout of given type reference.tools.jackson.core.JsonParserFactory method for constructing non-blockingJsonParserthat is properly wired to allow configuration access (and, if relevant for parser, callbacks): essentially constructs aObjectReadContextand then callsTokenStreamFactory.createNonBlockingByteArrayParser(ObjectReadContext).tools.jackson.core.JsonParserFactory method for constructing non-blockingJsonParserthat is properly wired to allow configuration access (and, if relevant for parser, callbacks): essentially constructs aObjectReadContextand then callsTokenStreamFactory.createNonBlockingByteBufferParser(ObjectReadContext).tools.jackson.core.JsonParsercreateParser(byte[] content) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,byte[]).tools.jackson.core.JsonParsercreateParser(byte[] content, int offset, int len) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,byte[],int,int).tools.jackson.core.JsonParsercreateParser(char[] content) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,char[]).tools.jackson.core.JsonParsercreateParser(char[] content, int offset, int len) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,char[],int,int).tools.jackson.core.JsonParsercreateParser(DataInput content) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,DataInput).tools.jackson.core.JsonParsercreateParser(File src) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,java.io.File).tools.jackson.core.JsonParsercreateParser(InputStream src) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,InputStream).tools.jackson.core.JsonParsercreateParser(Reader src) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,Reader).tools.jackson.core.JsonParsercreateParser(String content) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,String).tools.jackson.core.JsonParsercreateParser(Path src) Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,Path).Method for constructing a new reader instance that is configured to data bind into specified type.forType(tools.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.Deprecated.booleanisEnabled(tools.jackson.core.StreamReadFeature f) booleanbooleanbooleannullNode()tools.jackson.core.TokenStreamFactoryReturns a newObjectReaderconfigured to collect deserialization problems instead of failing on the first error.problemCollectingReader(int maxProblems) Variant ofproblemCollectingReader()that allows overriding maximum number of problems to collect.problemCollectingReader(CollectingProblemHandler problemHandler) Variant ofproblemCollectingReader()that allows passing customCollectingProblemHandler(usually sub-class).readTree(byte[] content) Same asreadTree(InputStream)except content read from passed-in byte array.readTree(byte[] content, int offset, int len) Same asreadTree(InputStream)except content read from passed-in byte array.Same asreadTree(InputStream)except content read using passed-inDataInput.readTree(InputStream src) Method that reads content from given input source, using configuration of this reader, and binds it as JSON Tree.Same asreadTree(InputStream)except content accessed through passed-inReaderSame asreadTree(InputStream)except content read from passed-inStringreadTree(tools.jackson.core.JsonParser p) Convenience method that binds content read using given parser, using configuration of this reader, except that content is bound as JSON tree instead of configured root value type.readTree(TokenBuffer src) Same asreadTree(InputStream)except content read using passed-inTokenBuffer.<T> TreadValue(byte[] content) Method that binds content read from given byte array, using configuration of this reader.<T> TreadValue(byte[] buffer, int offset, int length) Method that binds content read from given byte array, using configuration of this reader.<T> T<T> TMethod that binds content read from givenFileusing configuration of this reader.<T> TreadValue(InputStream in) Method that binds content read from given input source, using configuration of this reader.<T> TMethod that binds content read from given input source, using configuration of this reader.<T> TMethod that binds content read from given JSON string, using configuration of this reader.<T> TMethod that binds content read from givenPathusing configuration of this reader.<T> TreadValue(tools.jackson.core.JsonParser p) Method that binds content read using given parser, using configuration of this reader, including expected result type.<T> TConvenience method for converting results from given JSON tree into given value type.<T> TreadValue(TokenBuffer src) Method that binds content read from givenTokenBufferusing configuration of this reader.<T> TreadValueCollectingProblems(byte[] content) Convenience overload forreadValueCollectingProblems(JsonParser).<T> TConvenience overload forreadValueCollectingProblems(JsonParser).<T> TConvenience overload forreadValueCollectingProblems(JsonParser).<T> TConvenience overload forreadValueCollectingProblems(JsonParser).<T> TreadValueCollectingProblems(String content) Convenience overload forreadValueCollectingProblems(JsonParser).<T> TConvenience overload forreadValueCollectingProblems(JsonParser).<T> TreadValueCollectingProblems(tools.jackson.core.JsonParser p) Deserializes JSON content into a Java object, collecting multiple problems if encountered.final <T> MappingIterator<T>readValues(byte[] content) Overloaded version ofreadValue(InputStream).<T> MappingIterator<T>readValues(byte[] content, int offset, int length) Overloaded version ofreadValue(InputStream).<T> MappingIterator<T>readValues(DataInput src) <T> MappingIterator<T>readValues(File src) Overloaded version ofreadValue(InputStream).<T> MappingIterator<T>readValues(InputStream src) Method for reading sequence of Objects from parser stream.<T> MappingIterator<T>readValues(Reader src) Overloaded version ofreadValue(InputStream).<T> MappingIterator<T>readValues(String content) Overloaded version ofreadValue(InputStream).<T> MappingIterator<T>readValues(Path src) Overloaded version ofreadValues(InputStream).<T> MappingIterator<T>readValues(tools.jackson.core.JsonParser p) Method for reading sequence of Objects from parser stream.<T> Iterator<T>readValues(tools.jackson.core.JsonParser p, Class<T> valueType) Convenience method that is equivalent to:<T> Iterator<T>readValues(tools.jackson.core.JsonParser p, tools.jackson.core.type.ResolvedType valueType) Convenience method that is equivalent to:<T> Iterator<T>readValues(tools.jackson.core.JsonParser p, tools.jackson.core.type.TypeReference<T> valueTypeRef) Convenience method that is equivalent to:<T> Iterator<T>readValues(tools.jackson.core.JsonParser p, JavaType valueType) Convenience method that is equivalent to:<T> MappingIterator<T>readValues(TokenBuffer src) stringNode(String text) tools.jackson.core.JsonParserprotected tools.jackson.core.JsonParser<T> TtreeToValue(tools.jackson.core.TreeNode n, Class<T> valueType) Deprecated.<T> TtreeToValue(tools.jackson.core.TreeNode n, JavaType valueType) Deprecated.<T> TtreeToValue(JsonNode n, Class<T> valueType) <T> TtreeToValue(JsonNode n, JavaType valueType) Same astreeToValue(JsonNode, Class)but with type-resolved target value type.tools.jackson.core.Versionversion()Method that will return version information stored in and read from jar that contains this class.with(tools.jackson.core.Base64Variant defaultBase64) with(tools.jackson.core.FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.with(tools.jackson.core.FormatSchema schema) Method for constructing a new instance with configuration that passes specifiedFormatSchematoJsonParserthat is constructed for parsing content.with(tools.jackson.core.StreamReadFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.with(ContextAttributes attrs) Mutant factory for overriding set of (default) attributes forObjectReaderto use.with(DatatypeFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.with(DeserializationConfig config) Mutant factory method that will construct a new instance that has specified underlyingDeserializationConfig.with(DeserializationFeature feature) Method for constructing a new reader instance that is configured with specified feature enabled.with(DeserializationFeature first, DeserializationFeature... other) Method for constructing a new reader instance that is configured with specified features enabled.with(InjectableValues injectableValues) Method for constructing a new instance with configuration that uses passedInjectableValuesto provide injectable values.Method for constructing a new reader instance with configuration that uses passedJsonNodeFactoryfor constructingJsonNodeinstances.withAttribute(Object key, Object value) withAttributes(Map<?, ?> attrs) withFeatures(tools.jackson.core.FormatFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.withFeatures(tools.jackson.core.StreamReadFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.withFeatures(DatatypeFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.withFeatures(DeserializationFeature... features) Method for constructing a new reader instance that is configured with specified features enabled.without(tools.jackson.core.FormatFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.without(tools.jackson.core.StreamReadFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.without(DatatypeFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.without(DeserializationFeature feature) Method for constructing a new reader instance that is configured with specified feature disabled.without(DeserializationFeature first, DeserializationFeature... other) Method for constructing a new reader instance that is configured with specified features disabled.withoutAttribute(Object key) withoutFeatures(tools.jackson.core.FormatFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.withoutFeatures(tools.jackson.core.StreamReadFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.withoutFeatures(DatatypeFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.withoutFeatures(DeserializationFeature... features) Method for constructing a new reader instance that is configured with specified features disabled.Convenience method that is same as calling:withRootName("")which will forcibly prevent use of root name wrapping when writing values with thisObjectReader.withRootName(String rootName) Method for constructing a new instance with configuration that specifies what root name to expect for "root name unwrapping".withRootName(PropertyName rootName) 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.void
-
Field Details
-
JSON_NODE_TYPE
-
_config
General serialization configuration settings; while immutable, can use copy-constructor to create modified instances as necessary. -
_contexts
Blueprint instance of deserialization context; used for creating actual instance when needed. -
_parserFactory
protected final tools.jackson.core.TokenStreamFactory _parserFactoryFactory used for constructingJsonParsers -
_unwrapRoot
protected final boolean _unwrapRootFlag that indicates whether root values are expected to be unwrapped or not -
_valueType
Declared type of value to instantiate during deserialization. Defines which deserializer to use; as well as base type of instance to construct if an updatable value is not configured to be used (subject to changes by embedded type information, for polymorphic types). If_valueToUpdateis non-null, only used for locating deserializer. -
_rootDeserializer
We may pre-fetch deserializer as soon as_valueTypeis known, and if so, reuse it afterwards. This allows avoiding further deserializer lookups and increases performance a bit on cases where readers are reused. -
_valueToUpdate
Instance to update with data binding; if any. If null, a new instance is created, if non-null, properties of this value object will be updated instead. Note that value can be of almost any type, except notArrayType; array types cannot be modified because array size is immutable. -
_schema
protected final tools.jackson.core.FormatSchema _schemaWhen using data format that uses a schema, schema is passed to parser. -
_injectableValues
Values that can be injected during deserialization, if any. -
_rootDeserializers
Root-level cached deserializers. Passed byObjectMapper, shared with it.
-
-
Constructor Details
-
ObjectReader
Constructor used byObjectMapperfor initial instantiation -
ObjectReader
protected ObjectReader(ObjectMapper mapper, DeserializationConfig config, JavaType valueType, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Constructor called when a root deserializer should be fetched based on other configuration. -
ObjectReader
protected ObjectReader(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Copy constructor used for building variations. -
ObjectReader
Copy constructor used when modifying simple feature flags -
ObjectReader
-
-
Method Details
-
version
public tools.jackson.core.Version version()Method that will return version information stored in and read from jar that contains this class.- Specified by:
versionin interfacetools.jackson.core.Versioned
-
_new
Factory method called by various "withXxx()" methods -
_new
protected ObjectReader _new(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, tools.jackson.core.FormatSchema schema, InjectableValues injectableValues) Factory method called by various "withXxx()" methods -
_newIterator
protected <T> MappingIterator<T> _newIterator(tools.jackson.core.JsonParser p, DeserializationContext ctxt, ValueDeserializer<?> deser, boolean parserManaged) Factory method used to createMappingIteratorinstances; either default, or custom subtype. -
_initForReading
protected tools.jackson.core.JsonToken _initForReading(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) -
_initForMultiRead
Alternative to_initForReading(tools.jackson.databind.deser.DeserializationContextExt, tools.jackson.core.JsonParser)used in cases where reading of multiple values means that we may or may not want to advance the stream, but need to do other initialization.Base implementation only sets configured
FormatSchema, if any, on parser. -
with
Method for constructing a new reader instance that is configured with specified feature enabled. -
with
Method for constructing a new reader instance that is configured with specified features enabled. -
withFeatures
Method for constructing a new reader instance that is configured with specified features enabled. -
without
Method for constructing a new reader instance that is configured with specified feature disabled. -
without
Method for constructing a new reader instance that is configured with specified features disabled. -
withoutFeatures
Method for constructing a new reader instance that is configured with specified features disabled. -
with
Method for constructing a new reader instance that is configured with specified feature enabled. -
withFeatures
Method for constructing a new reader instance that is configured with specified features enabled. -
without
Method for constructing a new reader instance that is configured with specified feature disabled. -
withoutFeatures
Method for constructing a new reader instance that is configured with specified features disabled. -
with
Method for constructing a new reader instance that is configured with specified feature enabled. -
withFeatures
Method for constructing a new reader instance that is configured with specified features enabled. -
without
Method for constructing a new reader instance that is configured with specified feature disabled. -
withoutFeatures
Method for constructing a new reader instance that is configured with specified features disabled. -
with
Method for constructing a new reader instance that is configured with specified feature enabled. -
withFeatures
Method for constructing a new reader instance that is configured with specified features enabled. -
without
Method for constructing a new reader instance that is configured with specified feature disabled. -
withoutFeatures
Method for constructing a new reader instance that is configured with specified features disabled. -
at
Convenience method to bind fromJsonPointer.JsonPointerBasedFilteris registered and will be used for parsing later. -
at
Convenience method to bind fromJsonPointerJsonPointerBasedFilteris registered and will be used for parsing later. -
with
Mutant factory method that will construct a new instance that has specified underlyingDeserializationConfig.NOTE: use of this method is not recommended, as there are many other re-configuration methods available.
-
with
Method for constructing a new instance with configuration that uses passedInjectableValuesto provide injectable values.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
with
Method for constructing a new reader instance with configuration that uses passedJsonNodeFactoryfor constructingJsonNodeinstances.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
withRootName
Method for constructing a new instance with configuration that specifies what root name to expect for "root name unwrapping". SeeMapperConfigBase.withRootName(String)for details.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
withRootName
-
withoutRootName
Convenience method that is same as calling:withRootName("")which will forcibly prevent use of root name wrapping when writing values with thisObjectReader. -
with
Method for constructing a new instance with configuration that passes specifiedFormatSchematoJsonParserthat is constructed for parsing content.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
forType
Method for constructing a new reader instance that is configured to data bind into specified type.Note that the method does not change state of this reader, but rather construct and returns a newly configured instance.
-
forType
Method for constructing a new reader instance that is configured to data bind into specified type.Note that the method does not change state of this reader, but rather construct and returns a newly configured instance.
-
forType
Method for constructing a new reader instance that is configured to data bind into specified type.Note that the method does not change state of this reader, but rather construct and returns a newly configured instance.
-
withValueToUpdate
Method for constructing a new instance with configuration that updates passed Object (as root value), instead of constructing a new value.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
withView
Method for constructing a new instance with configuration that uses specified View for filtering.Note that the method does NOT change state of this reader, but rather construct and returns a newly configured instance.
-
with
-
with
-
withHandler
-
problemCollectingReader
Returns a newObjectReaderconfigured to collect deserialization problems instead of failing on the first error. Uses default problem limit (100 problems).IMPORTANT: This method registers a
CollectingProblemHandler, inserting it before possible other handlers. If you need custom problem handling in addition to collection, you need to create your own handler that delegates toCollectingProblemHandler(or sub-classes it) and useproblemCollectingReader(CollectingProblemHandler)overload instead of this method.Future versions may support handler chaining; for now, only one handler is active.
Thread-safety: The returned reader is immutable and thread-safe. Each call to
readValueCollectingProblems(tools.jackson.core.JsonParser)allocates a fresh problem bucket, so concurrent calls do not interfere.Usage:
ObjectReader reader = mapper.reader() .forType(MyBean.class) .problemCollectingReader(); MyBean bean = reader.readValueCollectingProblems(json);- Returns:
- A new ObjectReader configured for problem collection
- Since:
- 3.1
-
problemCollectingReader
Variant ofproblemCollectingReader()that allows overriding maximum number of problems to collect.- Parameters:
maxProblems- Maximum number of problems to collect (must be>0)- Returns:
- A new ObjectReader configured for problem collection
- Throws:
IllegalArgumentException- if maxProblems is<= 0- Since:
- 3.1
-
problemCollectingReader
Variant ofproblemCollectingReader()that allows passing customCollectingProblemHandler(usually sub-class).- Parameters:
problemHandler- Custom handler instance to use- Returns:
- A new ObjectReader configured for problem collection
- Since:
- 3.1
-
with
-
with
Mutant factory for overriding set of (default) attributes forObjectReaderto use.Note that this will replace defaults passed by
ObjectMapper.- Parameters:
attrs- DefaultContextAttributesto use with a reader- Returns:
ObjectReaderinstance with specified default attributes (which is usually a newly constructed reader instance with otherwise identical settings)
-
withAttributes
-
withAttribute
-
withoutAttribute
-
_with
-
isEnabled
-
isEnabled
-
isEnabled
-
isEnabled
public boolean isEnabled(tools.jackson.core.StreamReadFeature f) -
getConfig
-
jsonNodeFactory
- Since:
- 3.1
-
parserFactory
public tools.jackson.core.TokenStreamFactory parserFactory()- Since:
- 3.0
-
typeFactory
- Since:
- 3.0
-
constructType
Convenience method for constructingJavaTypeout of given type (typicallyjava.lang.Class), but without explicit context.- Since:
- 3.1
-
constructType
Convenience method for constructingJavaTypeout of given type reference.- Since:
- 3.1
-
getAttributes
-
getInjectableValues
-
getValueType
-
getTypeFactory
Deprecated.Since 3.0 usetypeFactory() -
createParser
public tools.jackson.core.JsonParser createParser(File src) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,java.io.File).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(Path src) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,Path).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(InputStream src) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,InputStream).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(Reader src) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,Reader).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(byte[] content) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,byte[]).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(byte[] content, int offset, int len) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,byte[],int,int).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(String content) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,String).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(char[] content) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,char[]).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(char[] content, int offset, int len) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,char[],int,int).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createParser
public tools.jackson.core.JsonParser createParser(DataInput content) throws tools.jackson.core.JacksonException Factory method for constructingJsonParserthat is properly wired to allow callbacks for deserialization: basically constructs aObjectReadContextand then callsTokenStreamFactory.createParser(ObjectReadContext,DataInput).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createNonBlockingByteArrayParser
public tools.jackson.core.JsonParser createNonBlockingByteArrayParser() throws tools.jackson.core.JacksonExceptionFactory method for constructing non-blockingJsonParserthat is properly wired to allow configuration access (and, if relevant for parser, callbacks): essentially constructs aObjectReadContextand then callsTokenStreamFactory.createNonBlockingByteArrayParser(ObjectReadContext).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createNonBlockingByteBufferParser
public tools.jackson.core.JsonParser createNonBlockingByteBufferParser() throws tools.jackson.core.JacksonExceptionFactory method for constructing non-blockingJsonParserthat is properly wired to allow configuration access (and, if relevant for parser, callbacks): essentially constructs aObjectReadContextand then callsTokenStreamFactory.createNonBlockingByteBufferParser(ObjectReadContext).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
createArrayNode
- Specified by:
createArrayNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
createObjectNode
- Specified by:
createObjectNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
booleanNode
- Specified by:
booleanNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
missingNode
- Specified by:
missingNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
nullNode
- Specified by:
nullNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
stringNode
- Specified by:
stringNodein interfacetools.jackson.core.TreeCodec<JsonNode>
-
treeAsTokens
- Specified by:
treeAsTokensin interfacetools.jackson.core.TreeCodec<JsonNode>
-
treeAsTokens
-
readTree
public JsonNode readTree(tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Convenience method that binds content read using given parser, using configuration of this reader, except that content is bound as JSON tree instead of configured root value type. ReturnsJsonNodethat represents the root of the resulting tree, if there was content to read, ornullif no more content is accessible via passedJsonParser.NOTE! Behavior with end-of-input (no more content) differs between this
readTreemethod, and all other methods that take input source: latter will return "missing node", NOTnullNote: if an object was specified with
withValueToUpdate(java.lang.Object), it will be ignored.- Specified by:
readTreein interfacetools.jackson.core.TreeCodec<JsonNode>- Throws:
tools.jackson.core.JacksonException
-
writeTree
- Specified by:
writeTreein interfacetools.jackson.core.TreeCodec<JsonNode>
-
readValue
public <T> T readValue(tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Method that binds content read using given parser, using configuration of this reader, including expected result type. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> Iterator<T> readValues(tools.jackson.core.JsonParser p, Class<T> valueType) throws tools.jackson.core.JacksonException Convenience method that is equivalent to:withType(valueType).readValues(p);
Method reads a sequence of Objects from parser stream. Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case
JsonParserMUST point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surroundingSTART_ARRAY(one that contains values to read) but rather to the token following it which is the first token of the first value to read.- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> Iterator<T> readValues(tools.jackson.core.JsonParser p, tools.jackson.core.type.TypeReference<T> valueTypeRef) throws tools.jackson.core.JacksonException Convenience method that is equivalent to:withType(valueTypeRef).readValues(p);
Method reads a sequence of Objects from parser stream. Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case
JsonParserMUST point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surroundingSTART_ARRAY(one that contains values to read) but rather to the token following it which is the first token of the first value to read.- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> Iterator<T> readValues(tools.jackson.core.JsonParser p, tools.jackson.core.type.ResolvedType valueType) throws tools.jackson.core.JacksonException Convenience method that is equivalent to:withType(valueType).readValues(p);
Method reads a sequence of Objects from parser stream. Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case
JsonParserMUST point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surroundingSTART_ARRAY(one that contains values to read) but rather to the token following it which is the first token of the first value to read.- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> Iterator<T> readValues(tools.jackson.core.JsonParser p, JavaType valueType) throws tools.jackson.core.JacksonException Convenience method that is equivalent to:withType(valueType).readValues(p);
Method reads a sequence of Objects from parser stream. Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case
JsonParserMUST point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surroundingSTART_ARRAY(one that contains values to read) but rather to the token following it which is the first token of the first value to read.- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from given input source, using configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from given input source, using configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
r- Source to read content from- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from given JSON string, using configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
content- String that contains content to read- Throws:
tools.jackson.core.JacksonException
-
readValue
public <T> T readValue(byte[] content) throws tools.jackson.core.JacksonException Method that binds content read from given byte array, using configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
content- Byte array that contains encoded content to read- Throws:
tools.jackson.core.JacksonException
-
readValue
public <T> T readValue(byte[] buffer, int offset, int length) throws tools.jackson.core.JacksonException Method that binds content read from given byte array, using configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
buffer- Byte array that contains encoded content to readoffset- Offset of the first content byte inbufferlength- Length of content inbuffer, in bytes- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from givenFileusing configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
f- File that contains content to read- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from givenPathusing configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
path- Path that contains content to read- Throws:
tools.jackson.core.JacksonException
-
readValue
Convenience method for converting results from given JSON tree into given value type. Basically short-cut for:objectReader.readValue(src.traverse())
- Parameters:
node- Tree that contains content to convert- Throws:
tools.jackson.core.JacksonException
-
readValue
- Throws:
tools.jackson.core.JacksonException
-
readValue
Method that binds content read from givenTokenBufferusing configuration of this reader. Value return is either newly constructed, or root value that was specified withwithValueToUpdate(Object).- Parameters:
src-TokenBufferthat contains content to read- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
public <T> T readValueCollectingProblems(tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Deserializes JSON content into a Java object, collecting multiple problems if encountered. If any problems were collected, throwsDeferredBindingExceptionwith all problems.Usage: This method should be called on an ObjectReader created via
problemCollectingReader()orproblemCollectingReader(int). If called on a regular reader (without problem collection enabled), it behaves the same asreadValue(JsonParser)since no handler is registered.Error handling:
- Recoverable errors are accumulated and thrown as
DeferredBindingExceptionafter parsing - Hard (non-recoverable) failures throw immediately, with collected problems attached as suppressed exceptions
- When the configured limit is reached, collection stops
Exception Handling Strategy:
This method catches only
DatabindExceptionsubtypes (not allJacksonExceptions) because:- Core streaming errors (
StreamReadException,StreamWriteException) represent structural JSON problems that cannot be recovered from (malformed JSON, I/O errors) - Only databind-level errors (type conversion, unknown properties, instantiation failures) are potentially recoverable and suitable for collection
- Catching all JacksonExceptions would hide critical parsing errors that should fail fast
If a hard failure occurs after some problems have been collected, those problems are attached as suppressed exceptions to the thrown exception for debugging purposes.
Thread-safety: Each call allocates a fresh problem bucket, so multiple concurrent calls on the same reader instance are safe.
Parser filtering: Unlike convenience overloads (
readValueCollectingProblems(String),readValueCollectingProblems(byte[]), etc.), this method does not apply parser filtering. Callers are responsible for filter wrapping if needed.- Type Parameters:
T- Type to deserialize- Parameters:
p- JsonParser to read from (will not be closed by this method)- Returns:
- Deserialized object
- Throws:
DeferredBindingException- if recoverable problems were collectedDatabindException- if a non-recoverable error occurredtools.jackson.core.JacksonException- Since:
- 3.1
- Recoverable errors are accumulated and thrown as
-
readValueCollectingProblems
Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
public <T> T readValueCollectingProblems(byte[] content) throws tools.jackson.core.JacksonException Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
public <T> T readValueCollectingProblems(InputStream src) throws tools.jackson.core.JacksonException Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readValueCollectingProblems
Convenience overload forreadValueCollectingProblems(JsonParser).- Throws:
tools.jackson.core.JacksonException
-
readTree
Method that reads content from given input source, using configuration of this reader, and binds it as JSON Tree. ReturnsJsonNodethat represents the root of the resulting tree, if there was content to read, or "missing node" (instance ofJsonNodefor whichJsonNode.isMissingNode()returns true, and behaves otherwise similar to "null node") if no more content is accessible through passed-in input source.NOTE! Behavior with end-of-input (no more content) differs between this
readTreemethod, andreadTree(JsonParser)-- latter returnsnullfor "no content" case.Note that if an object was specified with a call to
withValueToUpdate(Object)it will just be ignored; result is always a newly constructedJsonNodeinstance.- Throws:
tools.jackson.core.JacksonException
-
readTree
Same asreadTree(InputStream)except content accessed through passed-inReader- Throws:
tools.jackson.core.JacksonException
-
readTree
Same asreadTree(InputStream)except content read from passed-inString- Throws:
tools.jackson.core.JacksonException
-
readTree
Same asreadTree(InputStream)except content read from passed-in byte array.- Throws:
tools.jackson.core.JacksonException
-
readTree
public JsonNode readTree(byte[] content, int offset, int len) throws tools.jackson.core.JacksonException Same asreadTree(InputStream)except content read from passed-in byte array.- Throws:
tools.jackson.core.JacksonException
-
readTree
Same asreadTree(InputStream)except content read using passed-inDataInput.- Throws:
tools.jackson.core.JacksonException
-
readTree
Same asreadTree(InputStream)except content read using passed-inTokenBuffer.- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> MappingIterator<T> readValues(tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Method for reading sequence of Objects from parser stream.Sequence can be either root-level "unwrapped" sequence (without surrounding JSON array), or a sequence contained in a JSON Array. In either case
JsonParsermust point to the first token of the first element, OR not point to any token (in which case it is advanced to the next token). This means, specifically, that for wrapped sequences, parser MUST NOT point to the surroundingSTART_ARRAYbut rather to the token following it.- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> MappingIterator<T> readValues(InputStream src) throws tools.jackson.core.JacksonException Method for reading sequence of Objects from parser stream.Sequence can be either wrapped or unwrapped root-level sequence: wrapped means that the elements are enclosed in JSON Array; and unwrapped that elements are directly accessed at main level. Assumption is that iff the first token of the document is
START_ARRAY, we have a wrapped sequence; otherwise unwrapped. For wrapped sequences, leadingSTART_ARRAYis skipped, so that for both cases, underlyingJsonParserwill point to what is expected to be the first token of the first element.Note that the wrapped vs unwrapped logic means that it is NOT possible to use this method for reading an unwrapped sequence of elements written as JSON Arrays: to read such sequences, one has to use
readValues(JsonParser), making sure parser points to the first token of the first element (i.e. the secondSTART_ARRAYwhich is part of the first element).- Throws:
tools.jackson.core.JacksonException
-
readValues
Overloaded version ofreadValue(InputStream).- Throws:
tools.jackson.core.JacksonException
-
readValues
Overloaded version ofreadValue(InputStream).- Parameters:
content- String that contains JSON content to parse- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> MappingIterator<T> readValues(byte[] content, int offset, int length) throws tools.jackson.core.JacksonException Overloaded version ofreadValue(InputStream).- Throws:
tools.jackson.core.JacksonException
-
readValues
public final <T> MappingIterator<T> readValues(byte[] content) throws tools.jackson.core.JacksonException Overloaded version ofreadValue(InputStream).- Throws:
tools.jackson.core.JacksonException
-
readValues
Overloaded version ofreadValue(InputStream).- Throws:
tools.jackson.core.JacksonException
-
readValues
Overloaded version ofreadValues(InputStream).- Throws:
tools.jackson.core.JacksonException- Since:
- 3.0
-
readValues
- Throws:
tools.jackson.core.JacksonException
-
readValues
public <T> MappingIterator<T> readValues(TokenBuffer src) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
treeToValue
- Throws:
tools.jackson.core.JacksonException
-
treeToValue
@Deprecated public <T> T treeToValue(tools.jackson.core.TreeNode n, Class<T> valueType) throws tools.jackson.core.JacksonException Deprecated.- Throws:
tools.jackson.core.JacksonException
-
treeToValue
Same astreeToValue(JsonNode, Class)but with type-resolved target value type.- Throws:
tools.jackson.core.JacksonException
-
treeToValue
@Deprecated public <T> T treeToValue(tools.jackson.core.TreeNode n, JavaType valueType) throws tools.jackson.core.JacksonException Deprecated.- Throws:
tools.jackson.core.JacksonException
-
_bind
protected Object _bind(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p, Object valueToUpdate) throws tools.jackson.core.JacksonException Actual implementation of value reading+binding operation.- Throws:
tools.jackson.core.JacksonException
-
_bindAndClose
protected Object _bindAndClose(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_collectingBind
protected <T> T _collectingBind(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Internal helper for problem-collecting deserialization that does NOT close the parser. Caller is responsible for parser lifecycle management.- Throws:
tools.jackson.core.JacksonException- Since:
- 3.1
-
_collectingBindAndClose
protected <T> T _collectingBindAndClose(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) throws tools.jackson.core.JacksonException Internal helper for problem-collecting deserialization that DOES close the parser. Mirrors_bindAndClose(tools.jackson.databind.deser.DeserializationContextExt, tools.jackson.core.JsonParser)but with problem collection enabled.- Throws:
tools.jackson.core.JacksonException- Since:
- 3.1
-
_bindAndCloseAsTree
protected final JsonNode _bindAndCloseAsTree(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p0) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_bindAsTree
protected final JsonNode _bindAsTree(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_bindAsTreeOrNull
protected final JsonNode _bindAsTreeOrNull(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException Same as_bindAsTree(tools.jackson.databind.deser.DeserializationContextExt, tools.jackson.core.JsonParser)except end-of-input is reported by returningnull, not "missing node"- Throws:
tools.jackson.core.JacksonException
-
_bindAndReadValues
protected <T> MappingIterator<T> _bindAndReadValues(DeserializationContextExt ctxt, tools.jackson.core.JsonParser p) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_considerFilter
protected tools.jackson.core.JsonParser _considerFilter(tools.jackson.core.JsonParser p, boolean multiValue) Consider filter when creating JsonParser. -
_verifyNoTrailingTokens
protected final void _verifyNoTrailingTokens(tools.jackson.core.JsonParser p, DeserializationContext ctxt, JavaType bindType) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
_verifySchemaType
protected void _verifySchemaType(tools.jackson.core.FormatSchema schema) -
_deserializationContext
Internal helper method called to create an instance ofDeserializationContextfor deserializing a single root value. Can be overridden if a custom context is needed. -
_deserializationContext
-
_assertNotNull
-
_findRootDeserializer
protected ValueDeserializer<Object> _findRootDeserializer(DeserializationContext ctxt) throws DatabindException Method called to locate deserializer for the passed root-level value.- Throws:
DatabindException
-
_findTreeDeserializer
protected ValueDeserializer<Object> _findTreeDeserializer(DeserializationContext ctxt) throws DatabindException - Throws:
DatabindException
-
_prefetchRootDeserializer
Method called to locate deserializer ahead of time, if permitted by configuration. Method also is NOT to throw an exception if access fails.
-
typeFactory()