public final class LocalDateSerializer extends JodaDateSerializerBase<org.joda.time.LocalDate>
Modifier and Type | Field and Description |
---|---|
protected static JacksonJodaFormat |
DEFAULT_FORMAT |
_format, DEFAULT_DATEONLY_FORMAT, DEFAULT_LOCAL_DATETIME_FORMAT, DEFAULT_TIMEONLY_FORMAT
Constructor and Description |
---|
LocalDateSerializer() |
LocalDateSerializer(JacksonJodaFormat format) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
getSchema(com.fasterxml.jackson.databind.SerializerProvider provider,
Type typeHint) |
void |
serialize(org.joda.time.LocalDate value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(T value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
LocalDateSerializer |
withFormat(JacksonJodaFormat formatter) |
_useTimestamp, createContextual
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
protected static final JacksonJodaFormat DEFAULT_FORMAT
public LocalDateSerializer()
public LocalDateSerializer(JacksonJodaFormat format)
public LocalDateSerializer withFormat(JacksonJodaFormat formatter)
withFormat
in class JodaDateSerializerBase<org.joda.time.LocalDate>
public void serialize(org.joda.time.LocalDate value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
serialize
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.LocalDate>
IOException
com.fasterxml.jackson.core.JsonGenerationException
public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider, Type typeHint)
getSchema
in interface com.fasterxml.jackson.databind.jsonschema.SchemaAware
getSchema
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.joda.time.LocalDate>
public void serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serializeWithType
in class com.fasterxml.jackson.databind.JsonSerializer<T>
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2015. All rights reserved.