public static class JSON.DateTimeTypeAdapter
extends com.google.gson.TypeAdapter<org.joda.time.DateTime>
| Constructor and Description |
|---|
DateTimeTypeAdapter() |
DateTimeTypeAdapter(org.joda.time.format.DateTimeFormatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
read(com.google.gson.stream.JsonReader in) |
void |
setFormat(org.joda.time.format.DateTimeFormatter dateFormat) |
void |
write(com.google.gson.stream.JsonWriter out,
org.joda.time.DateTime date) |
public DateTimeTypeAdapter()
public DateTimeTypeAdapter(org.joda.time.format.DateTimeFormatter formatter)
public void setFormat(org.joda.time.format.DateTimeFormatter dateFormat)
public void write(com.google.gson.stream.JsonWriter out,
org.joda.time.DateTime date)
throws IOException
write in class com.google.gson.TypeAdapter<org.joda.time.DateTime>IOExceptionpublic org.joda.time.DateTime read(com.google.gson.stream.JsonReader in)
throws IOException
read in class com.google.gson.TypeAdapter<org.joda.time.DateTime>IOExceptionCopyright © 2019. All rights reserved.