Package io.ably.lib.util
Class Serialisation
java.lang.Object
io.ably.lib.util.Serialisation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.gson.Gson
static final com.google.gson.GsonBuilder
static final com.google.gson.JsonParser
static Serialisation.HttpBodyHandler<com.google.gson.JsonElement>
static Serialisation.HttpResponseHandler<com.google.gson.JsonElement>
static final org.msgpack.core.MessagePack.PackerConfig
static final org.msgpack.core.MessagePack.UnpackerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
gsonToMsgpack
(com.google.gson.JsonElement json) static void
gsonToMsgpack
(com.google.gson.JsonElement json, org.msgpack.core.MessagePacker packer) static com.google.gson.JsonElement
jsonBytesToGson
(byte[] bytes) static <T> T
jsonBytesToGson
(byte[] bytes, Class<T> klass) static com.google.gson.JsonElement
msgpackToGson
(byte[] bytes) static com.google.gson.JsonElement
msgpackToGson
(org.msgpack.value.Value value)
-
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
-
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
-
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)
-