public class Serialisation
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Serialisation.FromJsonElement<T> |
static class |
Serialisation.HttpBodyHandler<T> |
static class |
Serialisation.HttpResponseHandler<T> |
| Modifier and Type | Field and Description |
|---|---|
static com.google.gson.Gson |
gson |
static com.google.gson.GsonBuilder |
gsonBuilder |
static com.google.gson.JsonParser |
gsonParser |
static Serialisation.HttpBodyHandler<com.google.gson.JsonElement> |
httpBodyHandler |
static Serialisation.HttpResponseHandler<com.google.gson.JsonElement> |
httpResponseHandler |
static org.msgpack.core.MessagePack.PackerConfig |
msgpackPackerConfig |
static org.msgpack.core.MessagePack.UnpackerConfig |
msgpackUnpackerConfig |
| Constructor and Description |
|---|
Serialisation() |
| Modifier and Type | Method and Description |
|---|---|
static 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,
java.lang.Class<T> klass) |
static com.google.gson.JsonElement |
msgpackToGson(byte[] bytes) |
static com.google.gson.JsonElement |
msgpackToGson(org.msgpack.value.Value value) |
public static final com.google.gson.JsonParser gsonParser
public static final com.google.gson.GsonBuilder gsonBuilder
public static final com.google.gson.Gson gson
public static final org.msgpack.core.MessagePack.PackerConfig msgpackPackerConfig
public static final org.msgpack.core.MessagePack.UnpackerConfig msgpackUnpackerConfig
public static Serialisation.HttpResponseHandler<com.google.gson.JsonElement> httpResponseHandler
public static Serialisation.HttpBodyHandler<com.google.gson.JsonElement> httpBodyHandler
public static byte[] gsonToMsgpack(com.google.gson.JsonElement json)
public static com.google.gson.JsonElement msgpackToGson(byte[] bytes)
public static com.google.gson.JsonElement jsonBytesToGson(byte[] bytes)
public static <T> T jsonBytesToGson(byte[] bytes,
java.lang.Class<T> klass)
public static void gsonToMsgpack(com.google.gson.JsonElement json,
org.msgpack.core.MessagePacker packer)
public static com.google.gson.JsonElement msgpackToGson(org.msgpack.value.Value value)