public class DefaultPacketStreamSerializer<T> extends Object implements IPacketStreamSerializer<T>
Constructor and Description |
---|
DefaultPacketStreamSerializer() |
Modifier and Type | Method and Description |
---|---|
T |
readPacketFromStream(ObjectInput input)
Reads a packet from the given input stream
|
void |
writePacketToStream(ObjectOutput output,
T packet)
Writes the given packet to the output stream
|
public T readPacketFromStream(ObjectInput input) throws IOException, ClassNotFoundException
IPacketStreamSerializer
readPacketFromStream
in interface IPacketStreamSerializer<T>
IOException
ClassNotFoundException
public void writePacketToStream(ObjectOutput output, T packet) throws IOException
IPacketStreamSerializer
writePacketToStream
in interface IPacketStreamSerializer<T>
IOException
Copyright © GigaSpaces.