Package io.ably.lib.util

Class Serialisation

java.lang.Object
io.ably.lib.util.Serialisation

public class Serialisation extends Object
  • Field Details

    • gsonParser

      public static final com.google.gson.JsonParser gsonParser
    • gsonBuilder

      public static final com.google.gson.GsonBuilder gsonBuilder
    • gson

      public static final com.google.gson.Gson gson
    • msgpackPackerConfig

      public static final org.msgpack.core.MessagePack.PackerConfig msgpackPackerConfig
    • msgpackUnpackerConfig

      public static final org.msgpack.core.MessagePack.UnpackerConfig msgpackUnpackerConfig
    • httpResponseHandler

      public static Serialisation.HttpResponseHandler<com.google.gson.JsonElement> httpResponseHandler
    • httpBodyHandler

      public static Serialisation.HttpBodyHandler<com.google.gson.JsonElement> httpBodyHandler
  • Constructor Details

    • Serialisation

      public Serialisation()
  • Method Details

    • gsonToMsgpack

      public static byte[] gsonToMsgpack(com.google.gson.JsonElement json)
    • msgpackToGson

      public static com.google.gson.JsonElement msgpackToGson(byte[] bytes)
    • jsonBytesToGson

      public static com.google.gson.JsonElement jsonBytesToGson(byte[] bytes)
    • jsonBytesToGson

      public static <T> T jsonBytesToGson(byte[] bytes, Class<T> klass)
    • gsonToMsgpack

      public static void gsonToMsgpack(com.google.gson.JsonElement json, org.msgpack.core.MessagePacker packer)
    • msgpackToGson

      public static com.google.gson.JsonElement msgpackToGson(org.msgpack.value.Value value)