public class UntypedObjectDeserializerSerializer
extends com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
JsonParser
as a normal UntypedObjectDeserializer
would
but instantly serializes out the values that were deserialized to a given JsonGenerator
.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.core.JsonGenerator |
generator |
Constructor and Description |
---|
UntypedObjectDeserializerSerializer(com.fasterxml.jackson.core.JsonGenerator generator) |
Modifier and Type | Method and Description |
---|---|
protected Object |
defaultDeserialize(String fieldName,
com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
protected Object |
defaultValueDeserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
Object |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context)
Overwritten from
UntypedObjectDeserializer allowing the deserialized JSON to be streamed out directly and
preventing the deserialized object from being kept in memory. |
protected Object |
mapArray(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context)
Overrides the default behaviour to write out values directly to the
generator and
returns null to prevent any references to the deserialized mapped array from being kept in memory. |
protected Object |
mapObject(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context)
Overrides the default behaviour to write out values directly to the
generator and
returns null to prevent any references to the deserialized mapped object from being kept in memory. |
_clearIfStdImpl, _findCustomDeser, createContextual, deserialize, deserializeWithType, isCachable, mapArray, mapArrayToArray, mapObject, resolve, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
public UntypedObjectDeserializerSerializer(com.fasterxml.jackson.core.JsonGenerator generator)
@Nullable public Object deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
UntypedObjectDeserializer
allowing the deserialized JSON to be streamed out directly and
preventing the deserialized object from being kept in memory.deserialize
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
parser
- JsonParser
context
- DeserializationContext
Object
of any type, if needing to temporary keep it in memory, otherwise null.IOException
- if unable to properly read and parse given JsonGenerator
.@Nullable protected Object mapObject(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
generator
and
returns null to prevent any references to the deserialized mapped object from being kept in memory.mapObject
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
IOException
@Nullable protected Object mapArray(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
generator
and
returns null to prevent any references to the deserialized mapped array from being kept in memory.mapArray
in class com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer
IOException
protected final Object defaultDeserialize(String fieldName, com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
IOException
protected final Object defaultValueDeserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
IOException
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.