public class UnixTimestampSerializer extends org.codehaus.jackson.map.JsonSerializer<Date>
| Constructor and Description |
|---|
UnixTimestampSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Date value,
org.codehaus.jackson.JsonGenerator jgen,
org.codehaus.jackson.map.SerializerProvider provider)
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
public void serialize(Date value, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider) throws IOException, org.codehaus.jackson.JsonProcessingException
serialize in class org.codehaus.jackson.map.JsonSerializer<Date>value - Value to serialize; can not be null.jgen - Generator used to output resulting Json contentprovider - Provider that can be used to get serializers forIOExceptionorg.codehaus.jackson.JsonProcessingExceptionCopyright © 2014. All rights reserved.