|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.io.XStreamSerializer
public class XStreamSerializer
XStream-based serializer. Delegates to XStream the marshalling.
| Constructor Summary | |
|---|---|
XStreamSerializer()
Creates a XStreamSerializer with default XStream instance with minimal dependencies |
|
XStreamSerializer(com.thoughtworks.xstream.XStream xstream)
Creates a XStreamSerializer 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 XStreamSerializer()
public XStreamSerializer(com.thoughtworks.xstream.XStream xstream)
xstream - the XStream instance| Method Detail |
|---|
public void marshall(java.lang.Object object,
java.io.Writer writer)
Serializer
marshall in interface Serializerobject - the Object to marshallwriter - the writer to which the object is marshalledpublic java.lang.Object unmarshall(java.io.Reader reader)
Serializer
unmarshall in interface Serializerreader - the input resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||