de.steeringbehaviors.simulation.xml
Class XMLReader

java.lang.Object
  extended by de.steeringbehaviors.simulation.xml.XMLReader

public class XMLReader
extends java.lang.Object

class XMLReader Implements the main functions for parsing a XML-file


Constructor Summary
XMLReader()
          Constructor
 
Method Summary
 org.w3c.dom.Document getDocument()
          Returns the Document object
 org.w3c.dom.traversal.TreeWalker getTreeWalker()
          Returns the TreeWalker object
 void readXMLFile(java.io.File file)
           
 void readXMLFile(java.io.InputStream in)
          Reads and parses the specified inputstream
 void readXMLFile(java.lang.String path, java.lang.String filename)
          Reads and parses a a XML-file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReader

public XMLReader()
Constructor

Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns the Document object

Returns:
The Document object

getTreeWalker

public org.w3c.dom.traversal.TreeWalker getTreeWalker()
Returns the TreeWalker object

Returns:
The TreeWalker object

readXMLFile

public void readXMLFile(java.lang.String path,
                        java.lang.String filename)
Reads and parses a a XML-file

Parameters:
filename - Name of the XML-file to parse

readXMLFile

public void readXMLFile(java.io.File file)

readXMLFile

public void readXMLFile(java.io.InputStream in)
Reads and parses the specified inputstream

Parameters:
in - InputStream to parse