public class XStreamWireFormat extends TextWireFormat
WireFormat implementation which uses the
| Constructor and Description |
|---|
XStreamWireFormat() |
| Modifier and Type | Method and Description |
|---|---|
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() |
java.lang.String |
marshalText(java.lang.Object command) |
void |
setVersion(int version) |
void |
setXStream(com.thoughtworks.xstream.XStream xStream) |
java.lang.Object |
unmarshalText(java.io.Reader reader) |
java.lang.Object |
unmarshalText(java.lang.String text) |
public int getVersion()
public void setVersion(int version)
public WireFormat copy()
public java.lang.Object unmarshalText(java.lang.String text)
unmarshalText in class TextWireFormatpublic java.lang.Object unmarshalText(java.io.Reader reader)
unmarshalText in class TextWireFormatpublic java.lang.String marshalText(java.lang.Object command)
throws java.io.IOException
marshalText in class TextWireFormatjava.io.IOExceptionpublic boolean canProcessWireFormatVersion(int version)
version - the version number to testpublic int getCurrentWireFormatVersion()
public com.thoughtworks.xstream.XStream getXStream()
public void setXStream(com.thoughtworks.xstream.XStream xStream)
protected com.thoughtworks.xstream.XStream createXStream()
Copyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.