public interface IStreamSerializer<T> extends Serializable
SerializerUtil
,
IRecordSerializer
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ObjectInput in)
De-serialize an object.
|
void |
serialize(ObjectOutput out,
T obj)
Serialize an object.
|
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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.