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