|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.io.impl.AbstractPacketReader
public abstract class AbstractPacketReader
Allows instances implementing Packet interface to be deserailized
| Field Summary | |
|---|---|
protected int |
wireFormatVersion
|
| Constructor Summary | |
|---|---|
AbstractPacketReader()
|
|
| Method Summary | |
|---|---|
void |
buildPacket(Packet p,
DataInput dataIn)
build a Packet instance from the data input stream |
boolean |
canRead(int packetType)
|
int |
getWireFormatVersion()
|
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 |
void |
setWireFormatVersion(int version)
Set the wire format version |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.activemq.io.impl.PacketReader |
|---|
createPacket, getPacketType |
| Field Detail |
|---|
protected int wireFormatVersion
| 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 -
IOExceptionpublic void setWireFormatVersion(int version)
setWireFormatVersion in interface PacketReaderversion - public int getWireFormatVersion()
getWireFormatVersion in interface PacketReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||