Top Fields Constructors Methods
tools.jackson.databind.deser.jdk

public abstract Class DateBasedDeserializer<T>

extends StdScalarDeserializer<T>
Class Inheritance
Known Direct Subclasses
tools.jackson.databind.deser.jdk.JavaUtilCalendarDeserializer, tools.jackson.databind.ext.sql.JavaSqlDateDeserializer, tools.jackson.databind.ext.sql.JavaSqlTimestampDeserializer, tools.jackson.databind.deser.jdk.JavaUtilDateDeserializer
Imports
java.text.DateFormat, .ParseException, .SimpleDateFormat, java.util.Locale, .TimeZone, com.fasterxml.jackson.annotation.JsonFormat, tools.jackson.core.JacksonException, .JsonParser, .JsonToken, tools.jackson.databind.BeanProperty, .DeserializationContext, .ValueDeserializer, tools.jackson.databind.cfg.CoercionAction, tools.jackson.databind.deser.std.StdScalarDeserializer, tools.jackson.databind.type.LogicalType, tools.jackson.databind.util.StdDateFormat

Field Summary

Modifier and TypeField and Description
protected final DateFormat
_customFormat

Specific format to use, if non-null; if null will just use default format.

protected final String
_formatString

Let's also keep format String for reference, to use for error messages

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected Date
public ValueDeserializer<?>
createContextual(DeserializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueDeserializer.createContextual.

Method called to see if a different (or differently configured) deserializer is needed to deserialize values of specified property.

public LogicalType
logicalType()

Overrides tools.jackson.databind.deser.std.StdScalarDeserializer.logicalType.

Method for accessing logical type of values this deserializer produces.

protected abstract DateBasedDeserializer<T>
Inherited from tools.jackson.databind.deser.std.StdScalarDeserializer:
deserializedeserializeWithTypegetEmptyAccessPatterngetNullAccessPatternsupportsUpdate

Field Detail

_customFormatback to summary
protected final DateFormat _customFormat

Specific format to use, if non-null; if null will just use default format.

_formatStringback to summary
protected final String _formatString

Let's also keep format String for reference, to use for error messages

Constructor Detail

DateBasedDeserializerback to summary
protected DateBasedDeserializer(Class<?> clz)
DateBasedDeserializerback to summary
protected DateBasedDeserializer(DateBasedDeserializer<T> base, DateFormat format, String formatStr)

Method Detail

_parseDateback to summary
protected Date _parseDate(JsonParser p, DeserializationContext ctxt) throws JacksonException

Overrides tools.jackson.databind.deser.std.StdDeserializer._parseDate.

Annotations
@Override
createContextualback to summary
public ValueDeserializer<?> createContextual(DeserializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueDeserializer.createContextual.

Doc from tools.jackson.databind.ValueDeserializer.createContextual.

Method called to see if a different (or differently configured) deserializer is needed to deserialize values of specified property. Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.

Annotations
@Override
logicalTypeback to summary
public LogicalType logicalType()

Overrides tools.jackson.databind.deser.std.StdScalarDeserializer.logicalType.

Doc from tools.jackson.databind.ValueDeserializer.logicalType.

Method for accessing logical type of values this deserializer produces. Typically used for further configuring handling of values, for example, to find which coercions are legal.

Annotations
@Override
withDateFormatback to summary
protected abstract DateBasedDeserializer<T> withDateFormat(DateFormat df, String formatStr)