org.test4j.tools.commons
类 PropertiesReader

java.lang.Object
  继承者 org.test4j.tools.commons.PropertiesReader

public class PropertiesReader
extends Object


构造方法摘要
PropertiesReader()
           
 
方法摘要
 Properties loadPropertiesFileFromClasspath(String propertiesFileName)
          Loads the properties file with the given name, which is available in the classpath.
 Properties loadPropertiesFileFromUserHome(String propertiesFileName)
          Loads the properties file with the given name, which is available in the user home folder.
 
从类 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.