org.test4j.tools.commons
类 PropertiesReader
java.lang.Object
org.test4j.tools.commons.PropertiesReader
public class PropertiesReader
- extends Object
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesReader
public PropertiesReader()
loadPropertiesFileFromUserHome
public Properties loadPropertiesFileFromUserHome(String propertiesFileName)
- Loads the properties file with the given name, which is available in the
user home folder. If no file with the given name is found, null is
returned.
- 参数:
propertiesFileName - The name of the properties file
- 返回:
- The Properties object, null if the properties file wasn't found.
loadPropertiesFileFromClasspath
public Properties loadPropertiesFileFromClasspath(String propertiesFileName)
- Loads the properties file with the given name, which is available in the
classpath. If no file with the given name is found, null is returned.
- 参数:
propertiesFileName - The name of the properties file
- 返回:
- The Properties object, null if the properties file wasn't found.
Copyright © 2013. All rights reserved.