org.codehaus.activemq.message
Class BrokerInfoWriter

java.lang.Object
  extended byorg.codehaus.activemq.message.AbstractPacketWriter
      extended byorg.codehaus.activemq.message.BrokerInfoWriter
All Implemented Interfaces:
PacketWriter

public class BrokerInfoWriter
extends AbstractPacketWriter

Writes a ConsumerInfo object to a Stream


Constructor Summary
BrokerInfoWriter()
           
 
Method Summary
 int getPacketType()
          Return the type of Packet
 void writePacket(Packet packet, DataOutput dataOut)
          Write a Packet instance to data output stream
 
Methods inherited from class org.codehaus.activemq.message.AbstractPacketWriter
canWrite, writeObject, writePacketToByteArray, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerInfoWriter

public BrokerInfoWriter()
Method Detail

getPacketType

public int getPacketType()
Return the type of Packet

Returns:
integer representation of the type of Packet

writePacket

public void writePacket(Packet packet,
                        DataOutput dataOut)
                 throws IOException
Write a Packet instance to data output stream

Specified by:
writePacket in interface PacketWriter
Overrides:
writePacket in class AbstractPacketWriter
Parameters:
packet - the instance to be seralized
dataOut - the output stream
Throws:
IOException - thrown if an error occurs


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