Class DateTimeSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<ZonedDateTime>
-
- com.yetanalytics.xapi.model.serializers.DateTimeSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
public class DateTimeSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<ZonedDateTime>
Custom serializer for ZonedDateTime- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateTimeSerializer()
DateTimeSerializer(Class<ZonedDateTime> t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(ZonedDateTime zdt, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
-
-
-
Constructor Detail
-
DateTimeSerializer
public DateTimeSerializer()
-
DateTimeSerializer
public DateTimeSerializer(Class<ZonedDateTime> t)
-
-
Method Detail
-
serialize
public void serialize(ZonedDateTime zdt, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<ZonedDateTime>
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-
-