Java Utililty Methods Properties Load

List of utility methods to do Properties Load

Description

The list of methods to do Properties Load are organized into topic(s).

Method

PropertiesloadProperties()
Load Selenium Evidence property file
properties = new Properties();
properties.load(new FileInputStream("init.properties"));
return properties;
PropertiesloadProperties()
load Properties
String configFile = System.getProperty(_CONF_FILE) == null ? _CONF_FILE : System.getProperty(_CONF_FILE);
Properties p = new Properties();
p.load(new FileReader(configFile));
return p;
voidloadProperties()
load Properties
try {
    if (properties == null) {
        properties = new Properties();
        properties.load(new FileInputStream(CONFIG_FILE_PATH));
} catch (IOException ex) {
    throw new Error(ex.getMessage(), ex);
PropertiesloadProperties()
load Properties
InputStream in = null;
Properties properties = new Properties();
try {
    in = new BufferedInputStream(new FileInputStream(configFile));
    properties.load(in);
} catch (IOException e) {
    e.printStackTrace();
return properties;
voidloadProperties()
load Properties
try {
    CONFIG_PROPERTIES.load(new FileInputStream(TEST_CLASSES_PATH_CONFIG + "config.properties"));
} catch (IOException ex) {
    Logger.getLogger("AdaptersTestCase - Access to config properties").log(Level.SEVERE, null, ex);
PropertiesloadProperties()
load Properties
return loadProperties(new Properties());
voidloadProperties()
load Properties
Properties propFile = new Properties();
propFile.load(new FileInputStream("dir.properties"));
dataDirName = propFile.getProperty(DIR_PROP_NAME);
fileType = propFile.getProperty(FILE_TYPE_PROP_NAME);
delimiter = propFile.getProperty(DELIMITER_PROP_NAME);
PropertiesloadProperties()
load Properties
Properties p = new Properties();
try {
    FileInputStream in = new FileInputStream(getConfigurationPath());
    p.load(in);
    in.close();
} catch (IOException ex) {
    ex.printStackTrace();
return p;
booleanloadProperties()
Attempt to open the default properties file and load its contents.
return loadProperties(null, null);
voidloadProperties()
Private methods
m_properties = new Properties();
try {
    loadProperties(m_properties, new File(m_propFilePath, m_propFileName));
} catch (FileNotFoundException e) {
    throw e;
} catch (IOException e) {
    throw e;