Package io.ably.lib.util
Class Serialisation
java.lang.Object
io.ably.lib.util.Serialisation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.gson.Gsonstatic final com.google.gson.GsonBuilderstatic final com.google.gson.JsonParserstatic Serialisation.HttpBodyHandler<com.google.gson.JsonElement>static Serialisation.HttpResponseHandler<com.google.gson.JsonElement>static final org.msgpack.core.MessagePack.PackerConfigstatic final org.msgpack.core.MessagePack.UnpackerConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]gsonToMsgpack(com.google.gson.JsonElement json) static voidgsonToMsgpack(com.google.gson.JsonElement json, org.msgpack.core.MessagePacker packer) static com.google.gson.JsonElementjsonBytesToGson(byte[] bytes) static <T> TjsonBytesToGson(byte[] bytes, Class<T> klass) static com.google.gson.JsonElementmsgpackToGson(byte[] bytes) static com.google.gson.JsonElementmsgpackToGson(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)
-