public final class XMLObject extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
objectToXML(Object object,
String fname)
Converts an object to an XML file.
|
static Object |
xmlToObject(String fname)
Converts an XML file to an object.
|
public static void objectToXML(Object object, String fname) throws FileNotFoundException
object - The object to convert.fname - The filename where to save it to.FileNotFoundException - On error.public static Object xmlToObject(String fname) throws FileNotFoundException
fname - The filename where to save it to.FileNotFoundException - On error.Copyright © 2007-2013. All Rights Reserved.