Interface IBmSerializer<T>

  • Type Parameters:
    T - the type of objects supported by this serializer.

    public interface IBmSerializer<T>
    Serializer/deserializer interface used by BM components.
    • Method Detail

      • serialize

        void serialize​(T object,
                       OutputStream out)
                throws IOException
        Serializes an object.
        Parameters:
        object - The object to serialize. May not be null.
        out - The output stream to write the serialized representation to. May not be null.
        Throws:
        IOException - if any I/O error occurs.
      • deserialize

        T deserialize​(InputStream in)
               throws IOException
        Deserializes an object.
        Parameters:
        in - The input stream to read the serialized representation from. May not be null.
        Returns:
        the deserialized object. Never null.
        Throws:
        IOException - if any I/O error occurs.