- XStream
Infobox Software
name = XStream Library
caption =
developer =Codehaus
released = initial release|2004|01|01
operating_system =Cross-platform
programming_language = Java
license = BSD-style license
website = [http://xstream.codehaus.org/ xstream.codehaus.org]XStream can be one of the following:
* a simple Java library to serialize objects to
XML and back again.
* a Danish IT-company offering streaming media business solutions (spelled Xstream)
* a simple functional transformation language for XML documents derived fromCaml , for which a compiler is provided underCeCILL free software licence .XStream library
XStream stands out for its ease of use and low footprint. It uses reflection to discover the structure of the object graph to serialize at
runtime . The XML it generates is very readable.The library doesn't require modifications to objects, so it's non intrusive to use the library. It can serialize internal fields, including private and final. Supports non-public and inner classes.
Object graph serialization
When serializing an object it serializes the full object graph. Duplicate references encountered in the object-model will be maintained. For example using the following class CDand add some of these object to a listIf the above code is executed with XStream's default relative references mode, it will generate the following XML:
XStream is
free software , distributed under a permissive,revised BSD-style licence .External links
* [http://xstream.codehaus.org/ XStream Library Home Page]
* [http://gallium.inria.fr/~frisch/xstream/ XStream, the functional transformation language for XML]
Wikimedia Foundation. 2010.