public class CustomInstantDeserializer<T extends org.threeten.bp.temporal.Temporal>
extends com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T>
Instant
s, OffsetDateTime
, and ZonedDateTime
s.
Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> |
adjust |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> |
fromMilliseconds |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> |
fromNanoseconds |
static CustomInstantDeserializer<org.threeten.bp.Instant> |
INSTANT |
static CustomInstantDeserializer<org.threeten.bp.OffsetDateTime> |
OFFSET_DATE_TIME |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> |
parsedToValue |
static CustomInstantDeserializer<org.threeten.bp.ZonedDateTime> |
ZONED_DATE_TIME |
Modifier | Constructor and Description |
---|---|
protected |
CustomInstantDeserializer(Class<T> supportedType,
org.threeten.bp.format.DateTimeFormatter parser,
com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> parsedToValue,
com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds,
com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds,
com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust) |
protected |
CustomInstantDeserializer(CustomInstantDeserializer<T> base,
org.threeten.bp.format.DateTimeFormatter f) |
Modifier and Type | Method and Description |
---|---|
protected org.threeten.bp.DateTimeException |
_peelDTE(org.threeten.bp.DateTimeException arg0) |
protected void |
_reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0,
com.fasterxml.jackson.databind.DeserializationContext arg1,
com.fasterxml.jackson.core.JsonToken arg2,
String arg3) |
T |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf) |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withLeniency(Boolean leniency) |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape) |
createContextual
deserialize, getEmptyAccessPattern, getNullAccessPattern, logicalType, supportsUpdate
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer
public static final CustomInstantDeserializer<org.threeten.bp.Instant> INSTANT
public static final CustomInstantDeserializer<org.threeten.bp.OffsetDateTime> OFFSET_DATE_TIME
public static final CustomInstantDeserializer<org.threeten.bp.ZonedDateTime> ZONED_DATE_TIME
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T extends org.threeten.bp.temporal.Temporal> fromMilliseconds
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T extends org.threeten.bp.temporal.Temporal> fromNanoseconds
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T extends org.threeten.bp.temporal.Temporal> parsedToValue
protected CustomInstantDeserializer(Class<T> supportedType, org.threeten.bp.format.DateTimeFormatter parser, com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> parsedToValue, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds, com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust)
protected CustomInstantDeserializer(CustomInstantDeserializer<T> base, org.threeten.bp.format.DateTimeFormatter f)
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf)
withDateFormat
in class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T extends org.threeten.bp.temporal.Temporal>
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape)
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withLeniency(Boolean leniency)
public T deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T extends org.threeten.bp.temporal.Temporal>
IOException
protected void _reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.core.JsonToken arg2, String arg3) throws IOException
IOException
protected org.threeten.bp.DateTimeException _peelDTE(org.threeten.bp.DateTimeException arg0)
Copyright © 2017-2023 Fortanix Inc. All Rights Reserved