Package tenapull.data.deserialize
Class EpochTimestamp.Serializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<java.sql.Timestamp>
tenapull.data.deserialize.EpochTimestamp.Serializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Enclosing class:
- EpochTimestamp
public static class EpochTimestamp.Serializer
extends com.fasterxml.jackson.databind.JsonSerializer<java.sql.Timestamp>
Serializes a java.sql.Timestamp into a JSON integer based on epoch seconds
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description Serializer() -
Method Summary
Modifier and Type Method Description voidserialize(java.sql.Timestamp timestamp, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)Serializes a java.sql.Timestamp into a JSON integer based on epoch seconds
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(java.sql.Timestamp timestamp, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws java.io.IOExceptionSerializes a java.sql.Timestamp into a JSON integer based on epoch seconds- Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<java.sql.Timestamp>- Parameters:
timestamp-jsonGenerator-serializerProvider-- Throws:
java.io.IOException
-