public interface CacheSerializer<T>
DataInput and DataOutput.| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(DataInput in)
Deserialize from the specified
DataInput instance. |
void |
serialize(T t,
DataOutput out)
Serialize the specified type into the specified
DataOutput instance. |
int |
serializedSize(T t)
Calculate the number of bytes that will be produced by
serialize(Object, java.io.DataOutput)
for given object t. |
void serialize(T t, DataOutput out) throws IOException
DataOutput instance.t - type that needs to be serializedout - DataOutput into which serialization needs to happen.IOExceptionT deserialize(DataInput in) throws IOException
DataInput instance.in - DataInput from which deserialization needs to happen.IOExceptionint serializedSize(T t)
serialize(Object, java.io.DataOutput)
for given object t.t - object to calculate serialized size fort© 2014 Robert Stupp, Koeln, Germany, robert-stupp.de - licensed under Apache License, Version 2 - Homepage