public class XmlConfigParser
extends java.lang.Object
Constructor and Description |
---|
XmlConfigParser()
A lightweight set of re-usable functions for general purpose parsing.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(java.lang.Class<?> clazz,
java.lang.String path)
Setting value into the variable which below the Class, after reading the file that is earmarked
path.
|
public XmlConfigParser()
public void fill(java.lang.Class<?> clazz, java.lang.String path) throws java.lang.IllegalArgumentException, javax.xml.stream.XMLStreamException
public static void initConfig(String path) {
new SimpleXmlParser().fill(ConfigReader.class, path);
}
.
clazz
- plan to be used Classpath
- earmarked xml file pathjava.lang.IllegalArgumentException
- IllegalArgumentExceptionjavax.xml.stream.XMLStreamException
- XMLStreamException