public final class InstantSerializer extends JodaDateSerializerBase<org.joda.time.Instant>
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 |
---|
InstantSerializer() |
InstantSerializer(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.Instant 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) |
InstantSerializer |
withFormat(JacksonJodaFormat formatter) |
_useTimestamp, createContextual
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
protected static final JacksonJodaFormat DEFAULT_FORMAT
public InstantSerializer()
public InstantSerializer(JacksonJodaFormat format)
public InstantSerializer withFormat(JacksonJodaFormat formatter)
withFormat
in class JodaDateSerializerBase<org.joda.time.Instant>
public void serialize(org.joda.time.Instant 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.Instant>
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.Instant>
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 © 2014. All rights reserved.