org.apache.activemq.store.kahadaptor
Class IntegerMarshaller

java.lang.Object
  extended by org.apache.activemq.store.kahadaptor.IntegerMarshaller
All Implemented Interfaces:
Marshaller<Integer>

public class IntegerMarshaller
extends Object
implements Marshaller<Integer>

Marshall an Integer


Constructor Summary
IntegerMarshaller()
           
 
Method Summary
 Integer readPayload(DataInput dataIn)
          Read the entry from the RawContainer
 void writePayload(Integer 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

IntegerMarshaller

public IntegerMarshaller()
Method Detail

writePayload

public void writePayload(Integer object,
                         DataOutput dataOut)
                  throws IOException
Description copied from interface: Marshaller
Write the payload of this entry to the RawContainer

Specified by:
writePayload in interface Marshaller<Integer>
Throws:
IOException

readPayload

public Integer readPayload(DataInput dataIn)
                    throws IOException
Description copied from interface: Marshaller
Read the entry from the RawContainer

Specified by:
readPayload in interface Marshaller<Integer>
Returns:
unmarshalled object
Throws:
IOException


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