Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BYTES |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
MIME_TYPE |
Constructor and Description |
---|
ImageDataGson() |
Modifier and Type | Method and Description |
---|---|
ImageData |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(ImageData src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public static final java.lang.String BYTES
public static final java.lang.String MIME_TYPE
public static final java.lang.String DESCRIPTION
public com.google.gson.JsonElement serialize(ImageData src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<ImageData>
public ImageData deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<ImageData>
com.google.gson.JsonParseException