Package com.algorand.algosdk.kmd.client
Class JSON.DateTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Date>
-
- com.algorand.algosdk.kmd.client.JSON.DateTypeAdapter
-
-
Constructor Summary
Constructors Constructor Description DateTypeAdapter()
DateTypeAdapter(DateFormat dateFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
read(com.google.gson.stream.JsonReader in)
void
setFormat(DateFormat dateFormat)
void
write(com.google.gson.stream.JsonWriter out, Date date)
-
-
-
Constructor Detail
-
DateTypeAdapter
public DateTypeAdapter()
-
DateTypeAdapter
public DateTypeAdapter(DateFormat dateFormat)
-
-
Method Detail
-
setFormat
public void setFormat(DateFormat dateFormat)
-
write
public void write(com.google.gson.stream.JsonWriter out, Date date) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-
read
public Date read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-
-