org.apache.activemq.kaha
Class BytesMarshaller

java.lang.Object
  extended by org.apache.activemq.kaha.BytesMarshaller
All Implemented Interfaces:
Marshaller

public class BytesMarshaller
extends Object
implements Marshaller

Implementation of a Marshaller for byte arrays


Constructor Summary
BytesMarshaller()
           
 
Method Summary
 Object readPayload(DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(Object object, DataOutput dataOut)
          Write the payload of this entry to the RawContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesMarshaller

public BytesMarshaller()
Method Detail

writePayload

public void writePayload(Object object,
                         DataOutput dataOut)
                  throws IOException
Write the payload of this entry to the RawContainer

Specified by:
writePayload in interface Marshaller
Parameters:
object -
dataOut -
Throws:
IOException

readPayload

public Object readPayload(DataInput dataIn)
                   throws IOException
Read the entry from the RawContainer

Specified by:
readPayload in interface Marshaller
Parameters:
dataIn -
Returns:
unmarshalled object
Throws:
IOException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.