Interface Serializer

    • Method Detail

      • toByteArray

        byte[] toByteArray​(Object o)
                    throws IOException
        Serializes the given object into an array of bytes
        Throws:
        IOException - if deserialization from byte array fails
      • fromByteArray

        <T> T fromByteArray​(byte[] bytes,
                            Class<T> type)
                     throws IOException
        Produces an object of type T from an array of bytes.
        Throws:
        IOException - if serialization to byte array fails