public class ConfigReader extends Object
| Constructor and Description |
|---|
ConfigReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
read(InputStream input)
Read from the
input and return it's configuration settings as a Map. |
public Map<String,String> read(InputStream input) throws IOException, SAXException, ConfigReadException
input and return it's configuration settings as a Map.input - the inputMap with all the configurations read from the config file, or throws an exception if
there's a problem reading the input, e.g.: invalid XML.IOException - Signals that an I/O exception has occurred.SAXException - the SAX exceptionConfigReadException - the config read exceptionCopyright © 2010–2018. All rights reserved.