Package fileLogic
Class XMLReader
java.lang.Object
fileLogic.XMLReader
- All Implemented Interfaces:
BaseReader
XML Reader class for
Loader class. It reads XML file by given path and provides
LinkedHashMap‹String[], String>, where String[] is XML path to String value.- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFromFile(String path) Reads XML file by path and returns parsedString[]/Stringmap.
-
Constructor Details
-
XMLReader
public XMLReader()Default constructor of XMLReader.
-
-
Method Details
-
readFromFile
Reads XML file by path and returns parsedString[]/Stringmap.- Specified by:
readFromFilein interfaceBaseReader- Parameters:
path- path to XML file- Returns:
- Map of read items
- Throws:
IOException- If an I/O occurs opening source
-