@Singleton public static class GsonModule.Iso8601DateAdapter extends GsonModule.DateAdapter
Constructor and Description |
---|
GsonModule.Iso8601DateAdapter(DateService dateService) |
Modifier and Type | Method and Description |
---|---|
protected Date |
parseDate(String toParse) |
Date |
read(com.google.gson.stream.JsonReader reader) |
void |
write(com.google.gson.stream.JsonWriter writer,
Date value) |
@Inject public GsonModule.Iso8601DateAdapter(DateService dateService)
public void write(com.google.gson.stream.JsonWriter writer, Date value) throws IOException
write
in class com.google.gson.TypeAdapter<Date>
IOException
public Date read(com.google.gson.stream.JsonReader reader) throws IOException
read
in class com.google.gson.TypeAdapter<Date>
IOException
Copyright © 2009-2013 jclouds. All Rights Reserved.