-
public interface ObjectsSerializerSerializer interface for converting between objects and their MessagePack or JSON representations.
-
-
Method Summary
Modifier and Type Method Description abstract Array<Object>readMsgpackArray(@NotNull() MessageUnpacker unpacker)Reads a MessagePack array from the given unpacker and deserializes it into an Object array. abstract voidwriteMsgpackArray(@NotNull() Array<Object> objects, @NotNull() MessagePacker packer)Serializes the given Object array as a MessagePack array using the provided packer. abstract Array<Object>readFromJsonArray(@NotNull() JsonArray json)Reads a JSON array from the given JsonArray and deserializes it into an Object array. abstract JsonArrayasJsonArray(@NotNull() Array<Object> objects)Serializes the given Object array as a JSON array. -
-
Method Detail
-
readMsgpackArray
@NotNull() abstract Array<Object> readMsgpackArray(@NotNull() MessageUnpacker unpacker)
Reads a MessagePack array from the given unpacker and deserializes it into an Object array.
- Parameters:
unpacker- the MessageUnpacker to read from
-
writeMsgpackArray
abstract void writeMsgpackArray(@NotNull() Array<Object> objects, @NotNull() MessagePacker packer)
Serializes the given Object array as a MessagePack array using the provided packer.
- Parameters:
objects- the Object array to serializepacker- the MessagePacker to write to
-
readFromJsonArray
@NotNull() abstract Array<Object> readFromJsonArray(@NotNull() JsonArray json)
Reads a JSON array from the given JsonArray and deserializes it into an Object array.
- Parameters:
json- the JsonArray representing the array to deserialize
-
asJsonArray
@NotNull() abstract JsonArray asJsonArray(@NotNull() Array<Object> objects)
Serializes the given Object array as a JSON array.
- Parameters:
objects- the Object array to serialize
-
-
-
-