org.codehaus.activemq.io.impl
Class WireFormatInfoWriter

java.lang.Object
  extended byorg.codehaus.activemq.io.impl.AbstractPacketWriter
      extended byorg.codehaus.activemq.io.impl.WireFormatInfoWriter
All Implemented Interfaces:
PacketWriter

public class WireFormatInfoWriter
extends AbstractPacketWriter

Writes a ConsumerInfo object to a Stream


Field Summary
 
Fields inherited from class org.codehaus.activemq.io.impl.AbstractPacketWriter
wireFormatVersion
 
Constructor Summary
WireFormatInfoWriter()
           
 
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.io.impl.AbstractPacketWriter
canWrite, getWireFormatVersion, setWireFormatVersion, writeObject, writePacketToByteArray, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireFormatInfoWriter

public WireFormatInfoWriter()
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-2005 Protique, Ltd.. All Rights Reserved.