- java.lang.Object
-
- ilusr.core.datamanager.xml.XmlReader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
document()
String
fileLocation()
void
fileLocation(String value)
void
read()
Reads the xml file into memory.
-
-
-
Constructor Detail
-
XmlReader
public XmlReader(String xmlFile) throws SAXException, IOException, ParserConfigurationException
- Parameters:
xmlFile
- The location of the xml file to read.- Throws:
SAXException
- When the generated xml cannot be transformed.IOException
- When file does not exist or when access is restricted to the file.ParserConfigurationException
- When the xml cannot be parsed.
-
-
Method Detail
-
fileLocation
public String fileLocation()
- Specified by:
fileLocation
in interfaceIReader
- Returns:
- The current xml file location.
-
fileLocation
public void fileLocation(String value)
- Specified by:
fileLocation
in interfaceIReader
- Parameters:
value
- The new xml file location.
-
read
public void read() throws SAXException, IOException
Description copied from interface:IReader
Reads the xml file into memory.- Specified by:
read
in interfaceIReader
- Throws:
SAXException
- When the xml document cannot be parsed.IOException
- When file does not exist or when access is restricted to the file.
-
-