public interface ICompactSerializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(DataInputStream dis)
Deserialize into the specified DataInputStream instance.
|
void |
serialize(T t,
DataOutputStream dos)
Serialize the specified type into the specified DataOutputStream instance.
|
void serialize(T t, DataOutputStream dos) throws IOException
t
- type that needs to be serializeddos
- DataOutput into which serialization needs to happen.IOException
T deserialize(DataInputStream dis) throws IOException
dis
- DataInput from which deserialization needs to happen.IOException
Copyright © 2014. All rights reserved.