org.apache.activemq.transport.xstream
Class XStreamWireFormat
java.lang.Object
org.apache.activemq.transport.util.TextWireFormat
org.apache.activemq.transport.xstream.XStreamWireFormat
- All Implemented Interfaces:
- WireFormat
public class XStreamWireFormat
- extends TextWireFormat
A WireFormat
implementation which uses the
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XStreamWireFormat
public XStreamWireFormat()
getVersion
public int getVersion()
- Returns:
- the version of the wire format
setVersion
public void setVersion(int version)
copy
public WireFormat copy()
unmarshalText
public java.lang.Object unmarshalText(java.lang.String text)
- Specified by:
unmarshalText
in class TextWireFormat
unmarshalText
public java.lang.Object unmarshalText(java.io.Reader reader)
- Specified by:
unmarshalText
in class TextWireFormat
marshalText
public java.lang.String marshalText(java.lang.Object command)
- Specified by:
marshalText
in class TextWireFormat
canProcessWireFormatVersion
public boolean canProcessWireFormatVersion(int version)
- Can this wireformat process packets of this version
- Parameters:
version
- the version number to test
- Returns:
- true if can accept the version
getCurrentWireFormatVersion
public int getCurrentWireFormatVersion()
- Returns:
- the current version of this wire format
getXStream
public com.thoughtworks.xstream.XStream getXStream()
setXStream
public void setXStream(com.thoughtworks.xstream.XStream xStream)
createXStream
protected com.thoughtworks.xstream.XStream createXStream()
Copyright © 2011 Apache Software Foundation. All Rights Reserved.