edu.ntnu.item.jt.configloader
Class XMLParser
java.lang.Object
edu.ntnu.item.jt.configloader.XMLParser
public class XMLParser
- extends Object
Parses an XML file to config beans.
- Author:
- Jøran Vagnby Lillesand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser()
parse
public PowerScanBean parse(File xmlConfig)
throws InvalidFileException,
ParserException
- Parses the supplied XML structured configuration file.
- Parameters:
xmlConfig
- the XML file to be parsed
- Returns:
- the root bean containing references to every other piece of information in the configuration file.
- Throws:
InvalidFileException
- if the input file could not be read.
ParserException
- if an error occured while generating beans from the XML config file, such as malstructured XML.