public interface Converter extends ConverterMatcher
If an exception occurs during processing, a
should be thrown.
If working with the high level
you can register new converters using the XStream.registerConverter() method.
If working with the lower level API, the
ConverterLookup implementation is
responsible for looking up the appropriate converter.
provides a starting point for objects that hold a collection of other objects
(such as Lists and Maps).
|Modifier and Type||Method and Description|
Convert an object to textual data.
Convert textual data back into an object.
void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
source- The object to be marshalled.
writer- A stream to write to.
context- A context that allows nested objects to be processed by XStream.
Copyright © 2004-2014 XStream. All Rights Reserved.