Package de.xima.fc.helper
Class GsonDateTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Date>
-
- de.xima.fc.helper.GsonDateTypeAdapter
-
-
Constructor Summary
Constructors Constructor Description GsonDateTypeAdapter()GsonDateTypeAdapter(com.google.gson.Gson gson)Deprecated.UseGsonDateTypeAdapter()instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dateread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, Date value)
-
-
-
Constructor Detail
-
GsonDateTypeAdapter
public GsonDateTypeAdapter()
-
GsonDateTypeAdapter
@Deprecated public GsonDateTypeAdapter(com.google.gson.Gson gson)
Deprecated.UseGsonDateTypeAdapter()instead- Parameters:
gson- Ignored.
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter out, Date value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Date>- Throws:
IOException
-
read
public Date read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Date>- Throws:
IOException
-
-