public final class DateTimeSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.joda.time.DateTime>
DateTime
object into ISO8601 formats.Constructor and Description |
---|
DateTimeSerializer() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.module.SimpleModule |
getModule()
Gets a module wrapping this serializer as an adapter for the Jackson
ObjectMapper.
|
void |
serialize(org.joda.time.DateTime value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
public static com.fasterxml.jackson.databind.module.SimpleModule getModule()
public void serialize(org.joda.time.DateTime value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serialize
in class com.fasterxml.jackson.databind.JsonSerializer<org.joda.time.DateTime>
IOException
Copyright © 2019. All rights reserved.