public class PropertyManager extends Object
Constructor and Description |
---|
PropertyManager(File par1File,
ILogAgent par2ILogAgent) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(String par1Str,
boolean par2)
Gets a boolean property.
|
int |
getIntProperty(String par1Str,
int par2)
Gets an integer property.
|
File |
getPropertiesFile()
Returns this PropertyManager's file object used for property saving.
|
String |
getProperty(String par1Str,
String par2Str)
Gets a property.
|
void |
logMessageAndSave()
logs an info message then calls saveSettingsToFile Yes this appears to be a potential stack overflow - these 2
functions call each other repeatdly if an exception occurs.
|
void |
saveProperties()
Writes the properties to the properties file.
|
void |
setProperty(String par1Str,
Object par2Obj)
Saves an Object with the given property name.
|
public void logMessageAndSave()
public void saveProperties()
public File getPropertiesFile()
public String getProperty(String par1Str, String par2Str)
public int getIntProperty(String par1Str, int par2)
public boolean getBooleanProperty(String par1Str, boolean par2)