|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.io.impl.AbstractPacketReader
org.activemq.io.impl.AbstractPacketMarshaller
| Field Summary | |
protected int |
wireFormatVersion
|
| Constructor Summary | |
AbstractPacketMarshaller()
|
|
| Method Summary | |
boolean |
canWrite(Packet packet)
|
int |
getWireFormatVersion()
|
protected ActiveMQDestination |
readDestination(java.io.DataInput dataIn)
Reads a destination from the input stream |
void |
setWireFormatVersion(int version)
Set the wire format version |
protected void |
writeDestination(ActiveMQDestination destination,
java.io.DataOutput dataOut)
Writes the given destination to the stream |
protected void |
writeObject(java.lang.Object object,
java.io.DataOutput dataOut)
Simple (but inefficent) utility method to write an object on to a stream |
void |
writePacket(Packet p,
java.io.DataOutput dataOut)
Write a Packet instance to data output stream |
byte[] |
writePacketToByteArray(Packet packet)
Serializes a Packet int a byte array |
protected void |
writeUTF(java.lang.String str,
java.io.DataOutput dataOut)
simple helper method to ensure null strings are catered for |
| Methods inherited from class org.activemq.io.impl.AbstractPacketReader |
buildPacket, canRead, readObject, readPacketFromByteArray, readUTF |
| 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.PacketWriter |
getPacketType |
| Methods inherited from interface org.activemq.io.impl.PacketReader |
createPacket, getPacketType |
| Field Detail |
protected int wireFormatVersion
| Constructor Detail |
public AbstractPacketMarshaller()
| Method Detail |
protected void writeUTF(java.lang.String str,
java.io.DataOutput dataOut)
throws java.io.IOException
str - dataOut -
java.io.IOException
protected ActiveMQDestination readDestination(java.io.DataInput dataIn)
throws java.io.IOException
java.io.IOException
protected void writeDestination(ActiveMQDestination destination,
java.io.DataOutput dataOut)
throws java.io.IOException
java.io.IOExceptionpublic boolean canWrite(Packet packet)
canWrite in interface PacketWriterpacket -
protected void writeObject(java.lang.Object object,
java.io.DataOutput dataOut)
throws java.io.IOException
object - dataOut -
java.io.IOException
public byte[] writePacketToByteArray(Packet packet)
throws java.io.IOException
writePacketToByteArray in interface PacketWriterpacket -
java.io.IOException
public void writePacket(Packet p,
java.io.DataOutput dataOut)
throws java.io.IOException
writePacket in interface PacketWriterp - the instance to be seralizeddataOut - the output stream
java.io.IOException - thrown if an error occurspublic void setWireFormatVersion(int version)
setWireFormatVersion in interface PacketWritersetWireFormatVersion in class AbstractPacketReaderversion - public int getWireFormatVersion()
getWireFormatVersion in interface PacketWritergetWireFormatVersion in class AbstractPacketReader
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||