public class XmlParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Map<String,String>> |
parse(File file)
Loads and parses the file provided in constructor and prepares properties object with the data
|
static Optional<Map<String,String>> |
parse(InputStream is)
Loads and parses the XML file provided in constructor's URI and prepares map object with the data
|
static Optional<Map<String,String>> |
parse(URL url)
Loads and parses the XML file provided in constructor's URI and prepares map object with the data
|
public static Optional<Map<String,String>> parse(File file) throws ParserConfigurationException, FileNotFoundException, IOException, CXPException
file - ParserConfigurationExceptionFileNotFoundExceptionCXPExceptionIOExceptionpublic static Optional<Map<String,String>> parse(URL url) throws ParserConfigurationException, FileNotFoundException, IOException, CXPException
url - ParserConfigurationExceptionFileNotFoundExceptionIOExceptionCXPExceptionpublic static Optional<Map<String,String>> parse(InputStream is) throws ParserConfigurationException, FileNotFoundException, IOException, CXPException
is - ParserConfigurationExceptionFileNotFoundExceptionIOExceptionCXPExceptionCopyright © 2017. All rights reserved.