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