public class ObjectCodec<T> extends VariableCodec<T>
| Constructor and Description |
|---|
ObjectCodec() |
| Modifier and Type | Method and Description |
|---|---|
private static java.io.IOException |
createIOException(java.lang.String message,
java.lang.Throwable cause) |
T |
decode(java.io.DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
void |
encode(java.lang.Object object,
java.io.DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
deepCopy, estimatedSize, getFixedSize, isDeepCopySupported, isEstimatedSizeSupportedpublic void encode(java.lang.Object object,
java.io.DataOutput dataOut)
throws java.io.IOException
Codecjava.io.IOExceptionpublic T decode(java.io.DataInput dataIn) throws java.io.IOException
Codecjava.io.IOExceptionprivate static java.io.IOException createIOException(java.lang.String message,
java.lang.Throwable cause)