Methods Summary |
---|
public java.lang.String | getString(java.lang.String key)Get a string referenced by the designated key.
Assert.assertit((mProperties!=null), "invalid state: mProperties is null");
//ArgChecker.check(key, "key");
return mProperties.getProperty(key);
|
protected void | initialize(java.io.InputStream is)Load the Properties object from a file.
//ArgChecker.check(filename, "filename");
mProperties = new Properties();
mProperties.load(is);
|
protected void | initialize(java.util.Properties properties)Use the Properties arguments as the source of Strings
//ArgChecker.check(properties, "properties");
mProperties = properties;
|
protected void | initialize(java.io.File file)Load the Properties object from a file.
//ArgChecker.check(file != null && file.exists(),
// "File object doesn't point to an existing file: " + file.getPath());
//ArgChecker.check(file.canRead(),
// "File object can't be read: " + file.getPath());
//ArgChecker.check(!file.isDirectory(),
// "File object is a directory: " + file.getPath());
FileInputStream fis = new FileInputStream(file);
initialize(fis);
|
protected void | initialize(java.lang.String filename)Load the Properties object from a file.
//ArgChecker.check(filename, "filename");
initialize(new File(filename));
|