Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Monday, May 31, 2004

import com.vividsolutions.jcs.plugin.conflate.roads.*;
session = ToolboxModel.instance(wc).getSession();

import com.thoughtworks.xstream.XStream;
new XStream().toXML(session, new BufferedWriter(new FileWriter("c:/junk3/a.xml")));

import JSX.*;
new ObjOut(false, new BufferedWriter(new FileWriter("c:/junk3/a.xml"))).writeObject(session);
session2 = new ObjIn(new BufferedReader(new FileReader("c:/junk3/a.xml"))).readObject();

0 Comments:

Post a Comment

<< Home