|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.message.WireFormat
org.codehaus.activemq.message.TextWireFormat
org.codehaus.activemq.transport.xstream.XStreamWireFormat
A WireFormat implementation which uses the
| Constructor Summary | |
XStreamWireFormat()
|
|
| Method Summary | |
boolean |
canProcessWireFormatVersion(int version)
Can this wireformat process packets of this version |
WireFormat |
copy()
Creates a new copy of this wire format so it can be used in another thread/context |
protected com.thoughtworks.xstream.XStream |
createXStream()
|
Packet |
fromString(String xml)
Converts the String into a Packet |
int |
getCurrentWireFormatVersion()
|
com.thoughtworks.xstream.XStream |
getXStream()
|
Packet |
readPacket(DataInput in)
Reads a packet from the given input stream |
Packet |
readPacket(int firstByte,
DataInput in)
A helper method for working with sockets where the first byte is read first, then the rest of the message is read. |
void |
setXStream(com.thoughtworks.xstream.XStream xStream)
|
String |
toString(Packet packet)
Converts the packet into a String |
void |
writePacket(Packet packet,
DataOutput out)
Writes the packet to the given output stream |
| Methods inherited from class org.codehaus.activemq.message.WireFormat |
fromBytes, fromBytes, readPacket, toBytes, writePacket |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XStreamWireFormat()
| Method Detail |
public Packet readPacket(DataInput in)
throws IOException
WireFormat
readPacket in class WireFormatin -
IOException
public Packet readPacket(int firstByte,
DataInput in)
throws IOException
WireFormat
readPacket in class WireFormatfirstByte - the first byte of the packetin - the rest of the packet
IOException
public void writePacket(Packet packet,
DataOutput out)
throws IOException,
JMSException
WireFormat
writePacket in class WireFormatpacket - out -
IOException
JMSExceptionpublic WireFormat copy()
WireFormat
copy in class WireFormatpublic String toString(Packet packet)
TextWireFormat
toString in class TextWireFormatpublic Packet fromString(String xml)
TextWireFormat
fromString in class TextWireFormatpublic boolean canProcessWireFormatVersion(int version)
canProcessWireFormatVersion in class WireFormatversion - the version number to test
public int getCurrentWireFormatVersion()
getCurrentWireFormatVersion in class WireFormatpublic com.thoughtworks.xstream.XStream getXStream()
public void setXStream(com.thoughtworks.xstream.XStream xStream)
protected com.thoughtworks.xstream.XStream createXStream()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||