public class YearMonthDeserializer extends JSR310DateTimeDeserializerBase<YearMonth>
YearMonth
s.Modifier and Type | Field and Description |
---|---|
static YearMonthDeserializer |
INSTANCE |
_formatter, _isLenient
Constructor and Description |
---|
YearMonthDeserializer(DateTimeFormatter formatter) |
Modifier and Type | Method and Description |
---|---|
protected <R> R |
_handleDateTimeException(com.fasterxml.jackson.databind.DeserializationContext context,
DateTimeException e0,
String value) |
protected <R> R |
_handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.core.JsonToken... expTypes) |
protected <R> R |
_handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.core.JsonParser parser,
String message,
Object... args) |
protected DateTimeException |
_peelDTE(DateTimeException e)
Helper method used to peel off spurious wrappings of DateTimeException
|
protected <BOGUS> BOGUS |
_reportWrongToken(com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.core.JsonToken exp,
String unit) |
protected <BOGUS> BOGUS |
_reportWrongToken(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.core.JsonToken... expTypes) |
YearMonth |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
Object |
deserializeWithType(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context,
com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) |
protected YearMonthDeserializer |
withDateFormat(DateTimeFormatter dtf) |
protected YearMonthDeserializer |
withLeniency(Boolean leniency) |
_failForNotLenient, _throwNoNumericTimestampNeedTimeZone, createContextual, isLenient
deserialize, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _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
public static final YearMonthDeserializer INSTANCE
public YearMonthDeserializer(DateTimeFormatter formatter)
protected YearMonthDeserializer withDateFormat(DateTimeFormatter dtf)
withDateFormat
in class JSR310DateTimeDeserializerBase<YearMonth>
protected YearMonthDeserializer withLeniency(Boolean leniency)
withLeniency
in class JSR310DateTimeDeserializerBase<YearMonth>
public YearMonth deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<YearMonth>
IOException
public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException
deserializeWithType
in class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
IOException
protected <BOGUS> BOGUS _reportWrongToken(com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.JsonToken exp, String unit) throws IOException
IOException
protected <BOGUS> BOGUS _reportWrongToken(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.JsonToken... expTypes) throws IOException
IOException
protected <R> R _handleDateTimeException(com.fasterxml.jackson.databind.DeserializationContext context, DateTimeException e0, String value) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected <R> R _handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.JsonParser parser, String message, Object... args) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected <R> R _handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.core.JsonToken... expTypes) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected DateTimeException _peelDTE(DateTimeException e)
e
- DateTimeException to peelCopyright © 2019 FasterXML. All rights reserved.