Package com.suse.salt.netapi.parser
Class ZonedDateTimeISOAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.time.ZonedDateTime>
-
- com.suse.salt.netapi.parser.ZonedDateTimeISOAdapter
-
public class ZonedDateTimeISOAdapter extends com.google.gson.TypeAdapter<java.time.ZonedDateTime>
Adapter to convert an ISO formatted string to ZonedDateTime
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeISOAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZonedDateTime
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, java.time.ZonedDateTime date)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, java.time.ZonedDateTime date) throws java.io.IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<java.time.ZonedDateTime>
- Throws:
java.io.IOException
-
read
public java.time.ZonedDateTime read(com.google.gson.stream.JsonReader jsonReader) throws java.io.IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<java.time.ZonedDateTime>
- Throws:
java.io.IOException
-
-