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>
public class ObjectCodec<T>
- extends VariableCodec<T>
Implementation of a Marshaller for Objects
Method Summary |
T |
decode(DataInput dataIn)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectCodec
public ObjectCodec()
encode
public void encode(Object object,
DataOutput dataOut)
throws IOException
- Description copied from interface:
Codec
- Write the payload of the object to the DataOutput stream.
- Throws:
IOException
decode
public T decode(DataInput dataIn)
throws IOException
- Description copied from interface:
Codec
- Read the payload of the object from the DataInput stream.
- Returns:
- unmarshalled object
- Throws:
IOException
Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.