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>
IOException
public org.joda.time.DateTime read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<org.joda.time.DateTime>
IOException
Copyright © 2018. All rights reserved.