Interface ISerializer

All Known Implementing Classes:
DeflatedJavaSerializer, JavaSerializer

public interface ISerializer
A serializer that can be used to convert an object to byte array and back
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(byte[] data)
    Reconstructs the object from its serialized state
    byte[]
    serialize(Object object)
    Converts the object to byte array
  • Method Details

    • serialize

      byte[] serialize(Object object)
      Converts the object to byte array
      Parameters:
      object - the object to serialize
      Returns:
      the serialized page as byte array
    • deserialize

      Object deserialize(byte[] data)
      Reconstructs the object from its serialized state
      Parameters:
      data - the serialized state of the object
      Returns:
      the object reconstructed from its serialized state