|
|||||||||
| Home >> All >> org >> activemq >> io >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.activemq.io.impl
Interface PacketWriter

- All Known Implementing Classes:
- AbstractPacketMarshaller, AbstractPacketWriter
- public interface PacketWriter
Allows instances implementing Packet to written to a DataOutput
| Method Summary | |
boolean |
canWrite(org.activemq.message.Packet packet)
|
int |
getPacketType()
Return the type of Packet |
int |
getWireFormatVersion()
|
void |
setWireFormatVersion(int version)
Set the wire format version |
void |
writePacket(org.activemq.message.Packet packet,
java.io.DataOutput dataOut)
Write a Packet instance to data output stream |
byte[] |
writePacketToByteArray(org.activemq.message.Packet packet)
Serializes a Packet int a byte array |
| Method Detail |
getPacketType
public int getPacketType()
- Return the type of Packet
canWrite
public boolean canWrite(org.activemq.message.Packet packet)
writePacket
public void writePacket(org.activemq.message.Packet packet, java.io.DataOutput dataOut) throws java.io.IOException
- Write a Packet instance to data output stream
writePacketToByteArray
public byte[] writePacketToByteArray(org.activemq.message.Packet packet) throws java.io.IOException
- Serializes a Packet int a byte array
setWireFormatVersion
public void setWireFormatVersion(int version)
- Set the wire format version
getWireFormatVersion
public int getWireFormatVersion()
|
|||||||||
| Home >> All >> org >> activemq >> io >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC