public class ExtXMLConfig extends Object
| Constructor and Description |
|---|
ExtXMLConfig(Class<?> rootClass)
Creates an ExtXMLConfig-object, which uses rootClass as object to parse
and save XML-files.
|
ExtXMLConfig(String classPath)
Creates an ExtXMLConfig, which uses a classPath like javax.xml.bin to use
all classes in that path to parse and write xml-files
|
| Modifier and Type | Method and Description |
|---|---|
Object |
load(File xml)
Parses a xml-file into a JavaObject.
|
Object |
load(InputStream inputStream) |
Object |
load(String fileInput) |
void |
save(Object xml,
File file)
Saves a object into a xml-file.
|
void |
save(Object xml,
String file)
Saves a object into a xml-file.
|
String |
toString(Object xml)
Returns a formatted string representation of a xml-file given as a
java-Object.
|
public ExtXMLConfig(Class<?> rootClass) throws JAXBException
rootClass - the class use create/parse xml-files fromJAXBExceptionpublic ExtXMLConfig(String classPath) throws JAXBException
classPath - the class path containing all needed java-objectsJAXBExceptionpublic Object load(File xml)
xml - File-object representing the xml-filepublic Object load(InputStream inputStream)
public void save(Object xml, String file)
xml - the object to savefile - path to the file to save topublic void save(Object xml, File file)
xml - the object to savefile - File-object representing the file to save toCopyright © 2013 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.