public class PropertyReader extends Object
Constructor and Description |
---|
PropertyReader()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static String |
readProperty(Class<?> c,
String partofFilename,
String propFileName,
String propKey)
Read property from jar file.
|
String |
readProperty(String propFileName,
String propKey)
Read property from property file for QuimP package.
|
public String readProperty(String propFileName, String propKey)
not static because of getClass().Property file should be in the same package as this class or full path should be provided otherwise.
propFileName
- property file namepropKey
- name of the keyreadProperty(Class, String, String, String)
public static String readProperty(Class<?> c, String partofFilename, String propFileName, String propKey)
Used when there is many the same properties in many jars.
c
- class object associated with properties (being in jar)partofFilename
- A part of expected jar name where property is located.propFileName
- file name in jar with pathpropKey
- keyCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.