|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.message.AbstractPacketReader
Allows instances implementing Packet interface to be deserailized
| Constructor Summary | |
AbstractPacketReader()
|
|
| Method Summary | |
void |
buildPacket(Packet p,
DataInput dataIn)
build a Packet instance from the data input stream |
boolean |
canRead(int packetType)
|
protected Object |
readObject(DataInput dataIn)
; |
Packet |
readPacketFromByteArray(byte[] data)
Deserailizes a Packet from a byte array |
protected String |
readUTF(DataInput dataIn)
pointless method - but mirrors writer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.activemq.message.PacketReader |
createPacket, getPacketType |
| Constructor Detail |
public AbstractPacketReader()
| Method Detail |
public boolean canRead(int packetType)
canRead in interface PacketReaderpacketType -
protected String readUTF(DataInput dataIn)
throws IOException
dataIn -
IOException
protected Object readObject(DataInput dataIn)
throws IOException
dataIn -
IOException
public void buildPacket(Packet p,
DataInput dataIn)
throws IOException
buildPacket in interface PacketReaderp - A Packet objectdataIn - the data input stream to build the packet from
IOException
public Packet readPacketFromByteArray(byte[] data)
throws IOException
readPacketFromByteArray in interface PacketReaderdata -
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||