Module colesico.framework.restlet
Class GsonByteArrayToBase64
java.lang.Object
colesico.framework.restlet.teleapi.gson.GsonByteArrayToBase64
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<byte[]>,com.google.gson.JsonSerializer<byte[]>
public class GsonByteArrayToBase64
extends java.lang.Object
implements com.google.gson.JsonSerializer<byte[]>, com.google.gson.JsonDeserializer<byte[]>
-
Constructor Summary
Constructors Constructor Description GsonByteArrayToBase64() -
Method Summary
Modifier and Type Method Description byte[]deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(byte[] src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
GsonByteArrayToBase64
public GsonByteArrayToBase64()
-
-
Method Details
-
deserialize
public byte[] deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<byte[]>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(byte[] src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<byte[]>
-