|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler components.XMLReader
public class XMLReader
This class is used to read xml data and load it into a GameSpace. Given a string name this class can be used to parse the xml in that file, and load it into the gamespace. Defautl setings are used if parameters are missing. The XMLReader also supports any arbitary object property, but it will only be set if it actually used in the object being loaded.
This class has no specfields
Constructor Summary | |
---|---|
XMLReader()
Constructs a new XMLReader object |
Method Summary | |
---|---|
GameSpace |
readXMLFile(String file)
Given a valid XML file returns a GameSpace that contains everything. |
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
Reads the title of an XMLtag and determines the appropiate objects to add to gamespace, or the appropriate settings to modify. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLReader()
Method Detail |
---|
public GameSpace readXMLFile(String file) throws SAXException, ParserConfigurationException, IOException
SAXException
ParserConfigurationException
IOException
public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |