|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVersionedSerializer<T>
Method Summary | |
---|---|
T |
deserialize(java.io.DataInput in,
int version)
Deserialize into the specified DataInputStream instance. |
void |
serialize(T t,
java.io.DataOutput out,
int version)
Serialize the specified type into the specified DataOutputStream instance. |
long |
serializedSize(T t,
int version)
Calculate serialized size of object without actually serializing. |
Method Detail |
---|
void serialize(T t, java.io.DataOutput out, int version) throws java.io.IOException
t
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.version
- protocol version
java.io.IOException
T deserialize(java.io.DataInput in, int version) throws java.io.IOException
in
- DataInput from which deserialization needs to happen.version
- protocol version
java.io.IOException
long serializedSize(T t, int version)
t
- object to calculate serialized sizeversion
- protocol version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |