XStream stream = new XStream();
MyClass myClass = (MyClass)stream.fromXML(
new FileReader(fileName));
Writing a file with XStream
MyClass myClass = new myClass();
XStream stream = new XStream();
stream.toXML(myClass , System.out);
Notes and snippets relating to Java, Python, Groovy and Linux as well as the odd hardware review.
0 comments:
Post a Comment