Package org.fusesource.hawtbuf.codec
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 IOException
createIOException
(String message, Throwable cause) Read the payload of the object from the DataInput stream.void
encode
(Object object, DataOutput dataOut) Write the payload of the object to the DataOutput stream.Methods inherited from class org.fusesource.hawtbuf.codec.VariableCodec
deepCopy, estimatedSize, getFixedSize, isDeepCopySupported, isEstimatedSizeSupported
-
Constructor Details
-
ObjectCodec
public ObjectCodec()
-
-
Method Details
-
encode
Description copied from interface:Codec
Write the payload of the object to the DataOutput stream.- Parameters:
object
-dataOut
-- Throws:
IOException
-
decode
Description copied from interface:Codec
Read the payload of the object from the DataInput stream.- Parameters:
dataIn
-- Returns:
- unmarshalled object
- Throws:
IOException
-
createIOException
-