Package 

Interface ObjectsSerializer


  • 
    public interface ObjectsSerializer
    
                        

    Serializer 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 void writeMsgpackArray(@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 JsonArray asJsonArray(@NotNull() Array<Object> objects) Serializes the given Object array as a JSON array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 serialize
        packer - 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