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.JsonElement serialize​(byte[] src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      deserialize in interface com.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:
      serialize in interface com.google.gson.JsonSerializer<byte[]>