public static class JSON.DateTypeAdapter
extends com.google.gson.TypeAdapter<java.util.Date>
Constructor and Description |
---|
DateTypeAdapter() |
DateTypeAdapter(java.text.DateFormat dateFormat) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
read(com.google.gson.stream.JsonReader in) |
void |
setFormat(java.text.DateFormat dateFormat) |
void |
write(com.google.gson.stream.JsonWriter out,
java.util.Date date) |
public DateTypeAdapter()
public DateTypeAdapter(java.text.DateFormat dateFormat)
public void setFormat(java.text.DateFormat dateFormat)
public void write(com.google.gson.stream.JsonWriter out, java.util.Date date) throws java.io.IOException
write
in class com.google.gson.TypeAdapter<java.util.Date>
java.io.IOException
public java.util.Date read(com.google.gson.stream.JsonReader in) throws java.io.IOException
read
in class com.google.gson.TypeAdapter<java.util.Date>
java.io.IOException