public final class PropertiesReader extends Object
| Constructor and Description |
|---|
PropertiesReader() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
readProperties(String resourceName)
Reads properties that inherit from three locations.
|
public static Properties readProperties(String resourceName) throws Exception
resourceName - the 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.Exception - if no default properties are defined, or if
an error occurs reading the properties files.Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.