public interface Codec<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
T |
deepCopy(T source) |
void |
encode(T object,
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, DataOutput dataOut) throws IOException
object
- dataOut
- IOException
T decode(DataInput dataIn) throws IOException
dataIn
- IOException
int getFixedSize()
boolean isEstimatedSizeSupported()
estimatedSize(Object)
operation is supported.int estimatedSize(T object)
object
- boolean isDeepCopySupported()
deepCopy(Object)
operations is supported.Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.