Developer(s) Codehaus Operating system | License BSD-style license | |
Initial release January 1, 2004; 13 years ago (2004-01-01) Stable release 1.4.9 / March 15, 2016; 12 months ago (2016-03-15) |
XStream is a Java library to serialize objects to XML (or JSON) and back again.
Contents
XStream library
XStream uses reflection to discover the structure of the object graph to serialize at run time, and doesn't require modifications to objects. It can serialize internal fields, including private and final, and 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 CD
and add some of these object to a list
If 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.
Usage
References
XStream Wikipedia(Text) CC BY-SA