header.gif banner2.gif Anim By: 45Acres
Categories

Charity
www.hrudaya.org
Advertisements
$12.95 Domains $4.95/mo  Hosting
Blog Roll

What would you do, if you are not afraid?

Visit www.dilt.orgVisit www.dilt.org
Google
 
Web www.ramdhanyk.com
Visit www.deeshaa.net

www.BPODigest.com i-Vortal


May 17, 2004

XStream: Java <--> XML serialization

Serverside.com has a post on XStream: Java to XML serialization, and back again


Version 1.0 of XStream, a simple open source library to serialize objects to XML and back again has been released.

XStream is designed to be fast, places no constraints on the objects being serialized, is easy to use, produces very concise XML and requires no mapping configuration.

Specific features:

Ease of use. A high level facade is supplied that simplifies common use cases.
No mappings required. Custom objects can be serialized without need for specifying mappings.
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.
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.
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.
Full object graph support. Duplicate references encountered in the object-model will be maintained. Supports circular references.
Integrates with other XML APIs. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML).
Customizable conversion stategies. Strategies can be registered allowing customization of how particular types are represented as XML.
Error messages. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.


Posted by Ramdhan Yadav at May 17, 2004 11:41 AM Perma Link
Comments
Post a comment









Remember personal info?








Please click the POST button ONLY ONCE, it might take a while to post your comment as a spam checking program is running in the background