public class DateTypeAdapter extends com.google.gson.TypeAdapter<Date>
| 构造器和说明 |
|---|
DateTypeAdapter(String serializerDatePattern) |
public DateTypeAdapter(String serializerDatePattern)
public void write(com.google.gson.stream.JsonWriter jsonWriter,
Date date)
throws IOException
write 在类中 com.google.gson.TypeAdapter<Date>IOExceptionpublic Date read(com.google.gson.stream.JsonReader jsonReader) throws IOException
read 在类中 com.google.gson.TypeAdapter<Date>IOExceptionCopyright © 2021. All rights reserved.