public abstract class ByteArrayTypeAdapterBase
extends java.lang.Object
implements com.google.gson.JsonSerializer<byte[]>, com.google.gson.JsonDeserializer<byte[]>
| Constructor and Description |
|---|
ByteArrayTypeAdapterBase() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
protected abstract Base64Encoder |
getBase64Encoder() |
com.google.gson.JsonElement |
serialize(byte[] src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public byte[] 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<byte[]>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(byte[] src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<byte[]>protected abstract Base64Encoder getBase64Encoder()