|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object extended by dioscuri.config.ConfigController
public class ConfigController
Field Summary | |
---|---|
static java.lang.String |
EMULATOR_XML
|
Constructor Summary | |
---|---|
ConfigController()
|
Method Summary | |
---|---|
static javax.xml.bind.Marshaller |
getEmuMarshaller()
Get a marshaller that can marshal Emulator types |
static javax.xml.bind.Unmarshaller |
getEmuUnmarshaller()
Get an unmarshaller that can unmarshal Emulator types. |
static dioscuri.config.Emulator |
loadFromXML(java.io.File inputEmuFile)
Load a whole Emu object from an XML file on disk |
static dioscuri.config.Emulator |
loadFromXML(java.io.InputStream is)
|
static void |
saveToXML(dioscuri.config.Emulator emuObject,
java.io.File outputXMLFile)
save JAXB Emu object to disk as an XML file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String EMULATOR_XML
Constructor Detail |
---|
public ConfigController()
Method Detail |
---|
public static javax.xml.bind.Unmarshaller getEmuUnmarshaller() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.Marshaller getEmuMarshaller() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static void saveToXML(dioscuri.config.Emulator emuObject, java.io.File outputXMLFile) throws java.lang.Exception
emuObject
- The Emulator objectoutputXMLFile
- The xml output file
java.lang.Exception
public static dioscuri.config.Emulator loadFromXML(java.io.File inputEmuFile) throws java.lang.Exception
inputEmuFile
- An Emulator XML config file to load into memory
java.lang.Exception
public static dioscuri.config.Emulator loadFromXML(java.io.InputStream is) throws java.lang.Exception
is
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |