org.apache.activemq.transport.xstream
Class XStreamWireFormat

java.lang.Object
  extended by org.apache.activemq.transport.util.TextWireFormat
      extended by org.apache.activemq.transport.xstream.XStreamWireFormat
All Implemented Interfaces:
WireFormat

public class XStreamWireFormat
extends TextWireFormat

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()
           
protected  com.thoughtworks.xstream.XStream createXStream()
           
 int getCurrentWireFormatVersion()
           
 int getVersion()
           
 com.thoughtworks.xstream.XStream getXStream()
           
 String marshalText(Object command)
           
 void setVersion(int version)
           
 void setXStream(com.thoughtworks.xstream.XStream xStream)
           
 Object unmarshalText(Reader reader)
           
 Object unmarshalText(String text)
           
 
Methods inherited from class org.apache.activemq.transport.util.TextWireFormat
inReceive, marshal, marshal, unmarshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamWireFormat

public XStreamWireFormat()
Method Detail

getVersion

public int getVersion()
Returns:
the version of the wire format

setVersion

public void setVersion(int version)

copy

public WireFormat copy()

unmarshalText

public Object unmarshalText(String text)
Specified by:
unmarshalText in class TextWireFormat

unmarshalText

public Object unmarshalText(Reader reader)
Specified by:
unmarshalText in class TextWireFormat

marshalText

public String marshalText(Object command)
                   throws IOException
Specified by:
marshalText in class TextWireFormat
Throws:
IOException

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 © 2005-2013 The Apache Software Foundation. All Rights Reserved.