Converter implementations are responsible marshalling Java objects
to/from textual data.
If an exception occurs during processing, a
ConversionException should be thrown.
If working with the high level
com.thoughtworks.xstream.XStream facade,
you can register new converters using the XStream.registerConverter() method.
If working with the lower level API, the
com.thoughtworks.xstream.converters.ConverterLookup implementation is
responsible for looking up the appropriate converter.
Converters for object that can store all information in a single value
should implement
com.thoughtworks.xstream.converters.SingleValueConverter .
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter provides a starting point.
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter provides a starting point for objects that hold a collection of other objects
(such as Lists and Maps).
author: Joe Walnes See Also: com.thoughtworks.xstream.XStream See Also: com.thoughtworks.xstream.converters.ConverterLookup See Also: com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter See Also: com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter |