Class 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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
    • Constructor Detail

      • IsoDateTimeSerializer

        public IsoDateTimeSerializer()
    • 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:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<Object>
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException