|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.waffle.serialisation.XStreamSerialiser
public class XStreamSerialiser
XStream-based serialiser. Delegates to XStream the marshalling.
Constructor Summary | |
---|---|
XStreamSerialiser()
Creates a XStreamSerialiser with default XStream instance with minimal dependencies |
|
XStreamSerialiser(com.thoughtworks.xstream.XStream xstream)
Creates a XStreamSerialiser with a given XStream instance |
Method Summary | |
---|---|
void |
marshall(java.lang.Object object,
java.io.Writer writer)
Marshalls object to a writer |
java.lang.Object |
unmarshall(java.io.Reader reader)
Unmarshalls object from reader input |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XStreamSerialiser()
public XStreamSerialiser(com.thoughtworks.xstream.XStream xstream)
xstream
- the XStream instanceMethod Detail |
---|
public void marshall(java.lang.Object object, java.io.Writer writer)
Serialiser
marshall
in interface Serialiser
object
- the Object to marshallwriter
- the writer to which the object is marshalledpublic java.lang.Object unmarshall(java.io.Reader reader)
Serialiser
unmarshall
in interface Serialiser
reader
- the input resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |