public interface Codec<T>
| Modifier and Type | Method and Description |
|---|---|
T |
decode(java.io.DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
T |
deepCopy(T source) |
void |
encode(T object,
java.io.DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(T object) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
boolean |
isEstimatedSizeSupported() |
void encode(T object, java.io.DataOutput dataOut) throws java.io.IOException
object - dataOut - java.io.IOExceptionT decode(java.io.DataInput dataIn) throws java.io.IOException
dataIn - java.io.IOExceptionint getFixedSize()
boolean isEstimatedSizeSupported()
estimatedSize(Object) operation is supported.int estimatedSize(T object)
object - boolean isDeepCopySupported()
deepCopy(Object) operations is supported.Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.