Sunday, May 25, 2008

XStream

XStream is a simple library to serialize objects to XML and back again.

Features :
1. Ease of use. A high level facade is supplied that simplifies common use cases.
2. No mappings required. Most objects can be serialized without need for specifying mappings.
3. Performance. Speed and low memory footprint are a crucial part of the design, making it suitable for large object graphs or systems with high message throughput.
4. Clean XML. No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and more compact than native Java serialization.
5. Requires no modifications to objects. Serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor.
6. Full object graph support. Duplicate references encountered in the object-model will be maintained. Supports circular references.
7. Alternative output format. The modular design allows other output formats. XStream ships currently with JSON support and morphing.
8. Integrates with other XML APIs. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML).

Where We USe :
Transport
Persistence
Configuration
Unit Testing

Download :
XStream