Class ObjectCodec<T>
java.lang.Object
org.fusesource.hawtbuf.codec.VariableCodec<T>
org.fusesource.hawtbuf.codec.ObjectCodec<T>
- All Implemented Interfaces:
Codec<T>
Implementation of a Marshaller for Objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static IOExceptioncreateIOException(String message, Throwable cause) Read the payload of the object from the DataInput stream.voidencode(Object object, DataOutput dataOut) Write the payload of the object to the DataOutput stream.Methods inherited from class VariableCodec
deepCopy, estimatedSize, getFixedSize, isDeepCopySupported, isEstimatedSizeSupported
-
Constructor Details
-
ObjectCodec
public ObjectCodec()
-
-
Method Details
-
encode
Description copied from interface:CodecWrite the payload of the object to the DataOutput stream.- Parameters:
object-dataOut-- Throws:
IOException
-
decode
Description copied from interface:CodecRead the payload of the object from the DataInput stream.- Parameters:
dataIn-- Returns:
- unmarshalled object
- Throws:
IOException
-
createIOException
-