public class DateTimeAdapter
extends TypeAdapter<DateTime>
| Constructor and Description |
|---|
DateTimeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
DateTime |
read(JsonReader reader)
Reads a DateTime object.
|
static Class<DateTime> |
serializingClass()
Gets the Class that this adapter serializes.
|
void |
write(JsonWriter writer,
DateTime value)
Writes a DateTime object.
|
public static Class<DateTime> serializingClass()
public DateTime read(JsonReader reader)
throws IOException
read in class TypeAdapter<DateTime>reader - the JSON reader to read from.IOException - if the DateTime object cannot be parsedpublic void write(JsonWriter writer,
DateTime value)
throws IOException
write in class TypeAdapter<DateTime>writer - the JSON writer to write to.value - the DateTime object to write.IOExceptionCopyright © 2014-2016 NetApp, Inc. All Rights Reserved.