public interface ISerializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(java.io.DataInput in)
Deserialize from the specified DataInput instance.
|
void |
serialize(T t,
java.io.DataOutput out)
Serialize the specified type into the specified DataOutput instance.
|
long |
serializedSize(T t,
TypeSizes type) |
void serialize(T t, java.io.DataOutput out) throws java.io.IOException
t - type that needs to be serializedout - DataOutput into which serialization needs to happen.java.io.IOExceptionT deserialize(java.io.DataInput in) throws java.io.IOException
in - DataInput from which deserialization needs to happen.java.io.IOExceptionCopyright © 2015 The Apache Software Foundation