public class StreamsDateTimeDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<org.joda.time.DateTime> implements Serializable
org.apache.streams.jackson.StreamsJacksonMapper}
Converting date-time strings other than RFC3339 to joda DateTime objects requires
additional formats to be provided when instantiating StreamsJacksonMapper.
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
StreamsDateTimeDeserializer(Class<org.joda.time.DateTime> dateTimeClass) |
protected |
StreamsDateTimeDeserializer(Class<org.joda.time.DateTime> dateTimeClass,
List<String> formats) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
deserialize(com.fasterxml.jackson.core.JsonParser jpar,
com.fasterxml.jackson.databind.DeserializationContext context)
Applies each additional format in turn, until it can provide a non-null DateTime
|
_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, deserializeWithType, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
protected StreamsDateTimeDeserializer(Class<org.joda.time.DateTime> dateTimeClass)
public org.joda.time.DateTime deserialize(com.fasterxml.jackson.core.JsonParser jpar, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<org.joda.time.DateTime>
IOException
Copyright © 2018 The Apache Software Foundation. All rights reserved.