| java.lang.Object com.thoughtworks.xstream.XStreamer
XStreamer | public class XStreamer (Code) | | Self-contained XStream generator. The class is a utility to write XML streams that contain
additionally the XStream that was used to serialize the object graph. Such a stream can
be unmarshalled using this embedded XStream instance, that kept any settings.
author: Jörg Schaible since: 1.2 |
toXML | public void toXML(XStream xstream, Object obj, Writer out) throws IOException(Code) | | Serialize an object including the XStream to the given Writer as pretty-printed XML.
Warning: XStream will serialize itself into this XML stream. To read such an XML code, you
should use
XStreamer.fromXML(Reader) or one of the other overloaded
methods. Since a lot of internals are written into the stream, you cannot expect to use such
an XML to work with another XStream version or with XStream running on different JDKs and/or
versions. We have currently no JDK 1.3 support, nor will the PureReflectionConverter work
with a JDK less than 1.5.
throws: IOException - if an error occurs reading from the Writer. throws: com.thoughtworks.xstream.XStreamException - if the object cannot be serialized since: 1.2 |
|
|