org.apache.kahadb.util
Class ObjectMarshaller

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

public class ObjectMarshaller
extends VariableMarshaller<java.lang.Object>

Implementation of a Marshaller for Objects


Constructor Summary
ObjectMarshaller()
           
 
Method Summary
 java.lang.Object readPayload(java.io.DataInput dataIn)
          Read the payload of the object from the DataInput stream.
 void writePayload(java.lang.Object object, java.io.DataOutput dataOut)
          Write the payload of the object to the DataOutput stream.
 
Methods inherited from class org.apache.kahadb.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(java.lang.Object object,
                         java.io.DataOutput dataOut)
                  throws java.io.IOException
Description copied from interface: Marshaller
Write the payload of the object to the DataOutput stream.

Throws:
java.io.IOException

readPayload

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

Returns:
unmarshalled object
Throws:
java.io.IOException


Copyright © 2005-2011. All Rights Reserved.