Package eu.woolplatform.utils.json
Class IsoDateTimeSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<Object>
-
- eu.woolplatform.utils.json.IsoDateTimeSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class IsoDateTimeSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Object>
This serializer can convert a date/time type to a string in format yyyy-MM-dd'T'HH:mm:ss.SSSZZ. It supports the following types:The types Long, Date and Instant are translated to the default time zone. Local date/times are not supported, because it may represent a time that doesn't exist in the default time zone.
-
-
Constructor Summary
Constructors Constructor Description IsoDateTimeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
-
-
Method Detail
-
serialize
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
- Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<Object>- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
-