|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.util.xml.XMLParser
public class XMLParser
A simple utility wrapper around the Java DOM implementation to hopefully make XML parsing that bit easier without requiring YAL.
| Constructor Summary | |
|---|---|
XMLParser()
Create a new parser |
|
| Method Summary | |
|---|---|
XMLElement |
parse(java.lang.String ref)
Parse the XML document located by the slick resource loader using the reference given. |
XMLElement |
parse(java.lang.String name,
java.io.InputStream in)
Parse the XML document that can be read from the given input stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLParser()
| Method Detail |
|---|
public XMLElement parse(java.lang.String ref)
throws SlickException
ref - The reference to the XML document
SlickException - Indicates a failure to parse the XML, most likely the
XML is malformed in some way.
public XMLElement parse(java.lang.String name,
java.io.InputStream in)
throws SlickXMLException
name - The name of the documentin - The input stream from which the document can be read
SlickXMLException - Indicates a failure to parse the XML, most likely the
XML is malformed in some way.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||