public class NamedProperties extends Properties
defaults
Constructor and Description |
---|
NamedProperties(File file)
Creates the named properties.
|
NamedProperties(File file,
Properties defaults)
Creates the named properties.
|
Modifier and Type | Method and Description |
---|---|
void |
store(String comment)
Invokes store() using the file that belongs to the properties.
|
void |
storeToXML(String comment)
Invokes storeToXML() using the file that belongs to the properties.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public NamedProperties(File file) throws IOException
file
- the file in which the properties are and should be storedIOException
- if the file could not be read frompublic NamedProperties(File file, Properties defaults)
defaults
- the properties to use as defaultsfile
- the file in which the properties are and should be storedIOException
- if the file could not be read frompublic void store(String comment) throws IOException
comment
- a description of the property list, or null if no comment is desired.IOException
- if the file could not be written topublic void storeToXML(String comment) throws IOException
comment
- a description of the property list, or null if no comment is desired.IOException
- if the file could not be written to