org.activemq.io.impl
Class CachedValueReader

java.lang.Object
  extended by org.activemq.io.impl.AbstractPacketReader
      extended by org.activemq.io.impl.CachedValueReader
All Implemented Interfaces:
PacketReader

public class CachedValueReader
extends AbstractPacketReader

Reads a KeepAlive packet from a stream


Field Summary
 
Fields inherited from class org.activemq.io.impl.AbstractPacketReader
wireFormatVersion
 
Constructor Summary
CachedValueReader()
           
 
Method Summary
 void buildPacket(Packet packet, DataInput dataIn)
          build a Packet instance from the data input stream
 Packet createPacket()
           
 int getPacketType()
          Return the type of Packet
 
Methods inherited from class org.activemq.io.impl.AbstractPacketReader
canRead, getWireFormatVersion, readObject, readPacketFromByteArray, readUTF, setWireFormatVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedValueReader

public CachedValueReader()
Method Detail

getPacketType

public int getPacketType()
Return the type of Packet

Returns:
integer representation of the type of Packet

createPacket

public Packet createPacket()
Returns:
a new Packet instance

buildPacket

public void buildPacket(Packet packet,
                        DataInput dataIn)
                 throws IOException
build a Packet instance from the data input stream

Specified by:
buildPacket in interface PacketReader
Overrides:
buildPacket in class AbstractPacketReader
Parameters:
packet - A Packet object
dataIn - the data input stream to build the packet from
Throws:
IOException


Copyright © 2004-2010 Protique, Ltd.. All Rights Reserved.