public class DateTimeAdaptor
extends com.google.gson.TypeAdapter<org.joda.time.DateTime>
DateTimes represented as ISO date times.
Joda is not required by this library - this adaptor will only be registered with the default GSON parser if Joda is
available in the classpath.| Constructor and Description |
|---|
DateTimeAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
read(com.google.gson.stream.JsonReader jsonReader) |
void |
write(com.google.gson.stream.JsonWriter jsonWriter,
org.joda.time.DateTime dateTime) |
public org.joda.time.DateTime read(com.google.gson.stream.JsonReader jsonReader)
throws IOException
read in class com.google.gson.TypeAdapter<org.joda.time.DateTime>IOExceptionpublic void write(com.google.gson.stream.JsonWriter jsonWriter,
org.joda.time.DateTime dateTime)
throws IOException
write in class com.google.gson.TypeAdapter<org.joda.time.DateTime>IOExceptionCopyright © 2014. All Rights Reserved.