|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStreamSerializer<T>
An abstraction for serializing and de-serializing objects on streams.
SerializerUtil,
IRecordSerializerISerializer| Method Summary | |
|---|---|
T |
deserialize(ObjectInput in)
De-serialize an object. |
void |
serialize(ObjectOutput out,
T obj)
Serialize an object. |
| Method Detail |
|---|
void serialize(ObjectOutput out,
T obj)
Note: All state required to de-serialize the object must be written onto the stream. That may include serializer state as well, such as dictionary that will be used on the other end to decode the object. In such cases the serializer needs to know how to de-serialize both the dictionary and the data. Stateful serializers such as extSer must encapsulate all requisite state on the output stream.
out - The stream onto which the object's state will be written.obj - The object.T deserialize(ObjectInput in)
in - The stream from which the object's state will be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||