public class PropertiesFile extends Properties
defaults
Constructor and Description |
---|
PropertiesFile(File file)
Create or load the given properties file.
|
PropertiesFile(File file,
Properties defaults)
Create or load the given properties file.
|
Modifier and Type | Method and Description |
---|---|
void |
reload()
Reload the properties from the file.
|
void |
save()
Save the properties to the file, overwriting it.
|
void |
sync(boolean preferRuntime)
Sync the properties with the file.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public PropertiesFile(File file) throws IOException
file
- the properties fileIOException
- if creating or loading the file failspublic PropertiesFile(File file, Properties defaults) throws IOException
file
- the properties filedefaults
- the default propertiesIOException
- if creating or loading the file failspublic void reload() throws IOException
IOException
- if loading the file failspublic void save() throws IOException
IOException
- if saving the file failspublic void sync(boolean preferRuntime) throws IOException
preferRuntime
- if the runtime properties should be preferredIOException
- if loading or saving the file failsBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a