XStream
  1. XStream
  2. XSTR-50

XStream cant serialise itself.

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 1.2
    • Component/s: Converters
    • Labels:
      None

      Description

      Serialising the state of xstream so you can have the same mode of deserialisation at a separate point in time may be important for many applications. This is currently not possible (javaClassConverter is the cause i think).

      import com.thoughtworks.xstream.*;

      import junit.framework.*;

      public class XStreamTesting extends TestCase{

      /**

      • */
        public XStreamTesting()

        { super(""); }

      public void testXStreamSelf()

      { XStream stream = new XStream(); stream.setMode(XStream.XPATH_REFERENCES); System.out.println(stream.toXML(stream)); XStream newStream = (XStream)stream.fromXML(stream.toXML(stream)); }

      }

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            ben
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: