org.apache.activemq.kaha
Interface Marshaller

All Known Implementing Classes:
AtomicIntegerMarshaller, BytesMarshaller, CommandMarshaller, ConsumerMessageRefMarshaller, ObjectMarshaller, StoreEntryMarshaller, StringMarshaller, TopicSubAckMarshaller, TransactionMarshaller

public interface Marshaller

Marshaller for marshalling in/out objects to a RawContainer

Version:
$Revision: 1.2 $

Method Summary
 java.lang.Object readPayload(java.io.DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(java.lang.Object object, java.io.DataOutput dataOut)
          Write the payload of this entry to the RawContainer
 

Method Detail

writePayload

void writePayload(java.lang.Object object,
                  java.io.DataOutput dataOut)
                  throws java.io.IOException
Write the payload of this entry to the RawContainer

Parameters:
object -
dataOut -
Throws:
java.io.IOException

readPayload

java.lang.Object readPayload(java.io.DataInput dataIn)
                             throws java.io.IOException
Read the entry from the RawContainer

Parameters:
dataIn -
Returns:
unmarshalled object
Throws:
java.io.IOException


Copyright © 2011 Apache Software Foundation. All Rights Reserved.