org.apache.activemq.store.kahadb.disk.util
Class ObjectMarshaller

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.util.VariableMarshaller<Object>
      extended by org.apache.activemq.store.kahadb.disk.util.ObjectMarshaller
All Implemented Interfaces:
Marshaller<Object>

public class ObjectMarshaller
extends VariableMarshaller<Object>

Implementation of a Marshaller for Objects


Constructor Summary
ObjectMarshaller()
           
 
Method Summary
 Object readPayload(DataInput dataIn)
          Read the payload of the object from the DataInput stream.
 void writePayload(Object object, DataOutput dataOut)
          Write the payload of the object to the DataOutput stream.
 
Methods inherited from class org.apache.activemq.store.kahadb.disk.util.VariableMarshaller
deepCopy, getFixedSize, isDeepCopySupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMarshaller

public ObjectMarshaller()
Method Detail

writePayload

public void writePayload(Object object,
                         DataOutput dataOut)
                  throws IOException
Description copied from interface: Marshaller
Write the payload of the object to the DataOutput stream.

Throws:
IOException

readPayload

public Object readPayload(DataInput dataIn)
                   throws IOException
Description copied from interface: Marshaller
Read the payload of the object from the DataInput stream.

Returns:
unmarshalled object
Throws:
IOException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.