Class DateTimeLongSerializer


  • public class DateTimeLongSerializer
    extends org.codehaus.jackson.map.JsonSerializer<org.joda.time.DateTime>
    JSON Serializer that converts a DateTime instance to an EPOCH long
    Since:
    5.10
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer

        org.codehaus.jackson.map.JsonSerializer.None
    • Constructor Detail

      • DateTimeLongSerializer

        public DateTimeLongSerializer()
    • Method Detail

      • serialize

        public void serialize​(org.joda.time.DateTime value,
                              org.codehaus.jackson.JsonGenerator jgen,
                              org.codehaus.jackson.map.SerializerProvider provider)
                       throws IOException
        Specified by:
        serialize in class org.codehaus.jackson.map.JsonSerializer<org.joda.time.DateTime>
        Throws:
        IOException