XStream 1.1 released

I’m pleased to announce the release of XStream 1.1.

New features include:

  • Improved support for serializing objects following the Java Serialization Specification:
    • Calls custom serialization methods, readObject(), writeObject(), readResolve() and writeReplace() in class, if defined.
    • Supports ObjectInputStream.getFields() and ObjectOutputStream.putFields() in custom serialization.
  • Provides implementations of ObjectInputStream and ObjectOutputStream, allowing drop in replacements for standard serialization,
    including support for streams of objects. [More…]
  • Reads and writes directly to most XML Java APIs: DOM, DOM4J, JDOM, XOM, Electric XML, StAX, Trax (write only), SAX (write only).
    [More…]

View the complete change log and
download.

  • Trackback are closed
  • Comments (1)
    • Mark Waschkowski
    • January 18th, 2005

    Hi Joe,

    I’ve taken a look at XStream before, and I’m thinking of using it with Laszlo. Laszlo is an open source RIA framework that uses XML for data CRUD operations and for the definition of the front end itself(which I’m not concerned with). So I’m going to be xmlifing my Java objects so the front end can display and update the data, which will then be sent back to a servlet and persisted (using DB4O, which looks quite nice). Anyway, I would love to be able to override some of the xml elements using JDK’s attributes. So, I say somewhere else your advice:

    The easiest way to do this would be do subclass DefaultClassMapper, override the lookupName() and lookupType() methods and delegate to the attributes. Java 5.0 gives you annotations, and on earlier JDKs you can use QDox .

    I’ll give this a try and maybe I’ll pass on the code to you…

    Cheers,

    Mark

Comments are closed.
%d bloggers like this: