|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsource.ucregents.playground.gui.Saver
public class Saver
Designed to handle Saving and Loading in the game. Hopefully to be replaced with Castor (http://www.castor.org) as it handles the XML Parsing behind the scenes and auto-magically.
Constructor Summary | |
---|---|
Saver(java.io.File readFrom)
Constructor for loading an XML file |
|
Saver(java.lang.String fileFrom)
|
|
Saver(java.util.Vector<BaseEntity> ents)
Constructor for saving to the currently set XML file path |
|
Saver(java.util.Vector<BaseEntity> ents,
java.io.File saveTo)
Constructor for serializing entities to an XML file. |
Method Summary | |
---|---|
void |
createXMLDoc(java.util.Vector<BaseEntity> ents)
Construct the XML document representing the Vector of entities in the editor |
void |
processWithDOM(java.lang.String urlString)
Going to be used to parse out the XML in the Load process. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Saver(java.io.File readFrom)
readFrom
- XML File to read frompublic Saver(java.lang.String fileFrom)
public Saver(java.util.Vector<BaseEntity> ents)
ents
- Entities to serialize into xmlpublic Saver(java.util.Vector<BaseEntity> ents, java.io.File saveTo)
ents
- Entities to serializesaveTo
- XML File to save toMethod Detail |
---|
public void createXMLDoc(java.util.Vector<BaseEntity> ents) throws javax.xml.parsers.ParserConfigurationException
ents
- Entities to serialize
javax.xml.parsers.ParserConfigurationException
public void processWithDOM(java.lang.String urlString) throws java.lang.Exception
urlString
- Path to XML to read from
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |