public class PropertiesReader extends Object
| Constructor and Description |
|---|
PropertiesReader(String file_name_in_home_directory)
Construct a property reader for a specified file (in the home directory)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean(String property_name,
boolean default_value)
Read a boolean property
|
int |
readInt(String property_name,
int default_value)
Read an integer property
|
long |
readLong(String property_name,
long default_value)
Read an long property
|
String |
readString(String property_name,
String default_value)
Read a string from the properties file
|
public PropertiesReader(String file_name_in_home_directory)
file_name_in_home_directory - The name of the file to read (e.g. panda.properties)public String readString(String property_name, String default_value)
property_name - The name of the property (properties are normalized to lower case)default_value - The value to return if the property can not be read or is the empty stringpublic boolean readBoolean(String property_name, boolean default_value)
property_name - The name of the propertydefault_value - The value to return if the property can not be readpublic int readInt(String property_name, int default_value)
property_name - he name of the propertydefault_value - The value to return if the property can not be readpublic long readLong(String property_name, long default_value)
property_name - he name of the propertydefault_value - The value to return if the property can not be readCopyright © 2017. All rights reserved.