MOA 12.03
Real Time Analytics for Data Streams
moa.core.PropertiesReader Class Reference

Class implementing some properties reader utility methods. More...

List of all members.

Static Public Member Functions

static Properties readProperties (String resourceName) throws Exception
 Reads properties that inherit from three locations.

Detailed Description

Class implementing some properties reader utility methods.

Author:
Eibe Frank
Yong Wang
Len Trigg
Julien Prados
Version:
Revision:
6681

Definition at line 38 of file PropertiesReader.java.


Member Function Documentation

static Properties moa.core.PropertiesReader.readProperties ( String  resourceName) throws Exception [static]

Reads properties that inherit from three locations.

Properties are first defined in the system resource location (i.e. in the CLASSPATH). These default properties must exist. Properties defined in the users home directory (optional) override default settings. Properties defined in the current directory (optional) override all these settings.

Parameters:
resourceNamethe location of the resource that should be loaded. e.g.: "weka/core/Utils.props". (The use of hardcoded forward slashes here is OK - see jdk1.1/docs/guide/misc/resources.html) This routine will also look for the file (in this case) "Utils.props" in the users home directory and the current directory.
Returns:
the Properties
Exceptions:
Exceptionif no default properties are defined, or if an error occurs reading the properties files.

Definition at line 58 of file PropertiesReader.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations