public final class DateRFC3339TypeAdapter extends com.google.gson.TypeAdapter<Date>
| Constructor and Description |
|---|
DateRFC3339TypeAdapter(boolean serializeTime)
Creates a RFC3339 type adapter that will serialize dates in UTC
|
DateRFC3339TypeAdapter(TimeZone serializationTimezone,
boolean serializeTime)
Creates a RFC3339 type adapter that will serialize dates using the provided timezone
|
| Modifier and Type | Method and Description |
|---|---|
Date |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
Date value) |
public DateRFC3339TypeAdapter(boolean serializeTime)
public DateRFC3339TypeAdapter(TimeZone serializationTimezone, boolean serializeTime)
public void write(com.google.gson.stream.JsonWriter out,
Date value)
throws IOException
write in class com.google.gson.TypeAdapter<Date>IOExceptionpublic Date read(com.google.gson.stream.JsonReader in) throws IOException
read in class com.google.gson.TypeAdapter<Date>IOExceptionCopyright © 2020. All rights reserved.