com.sibvisions.rad.remote
Interface ISerializer

All Known Implementing Classes:
ByteSerializer, UniversalSerializer

public interface ISerializer

The ISerializer interface defines standard methods for serialization and deserialization of objects to and from streams. An implementation of ISerializer will be needed for connections to the remote server.

An ISerializer implementation can encrypt the communication between client and server or can optimize the traffic.


Method Summary
 Object read(DataInputStream pIn)
          Reads in a serialized object from a stream.
 void write(DataOutputStream pOut, Object pObject)
          Writes a serialized object to a stream.
 

Method Detail

read

Object read(DataInputStream pIn)
            throws Exception
Reads in a serialized object from a stream.

Parameters:
pIn - stream with serialized content
Returns:
deserialized object
Throws:
Exception - if deserialization fails

write

void write(DataOutputStream pOut,
           Object pObject)
           throws Exception
Writes a serialized object to a stream.

Parameters:
pOut - output stream for the object
pObject - serializable object
Throws:
Exception - if serialization fails


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.