org.jfree.report.modules.preferences.filesystem
public class FileConfigStorage extends Object implements ConfigStorage
Constructor Summary | |
---|---|
FileConfigStorage(File baseDirectory)
Creates a new file config storage and stores the contents in the given
directory.
|
Method Summary | |
---|---|
boolean | isAvailable(String configPath)
Tests, whether some configuration data exists for the given configuration.
|
Configuration | load(String configPath, Configuration defaults)
Loads the properties from the given path, specifying the given properties
as default.
|
void | store(String configPath, Configuration config)
Stores the given properties on the defined path.
|
String | toString() |
Parameters: baseDirectory the directory that should contain the files.
Parameters: configPath the configuration path to the property storage.
Returns: true, if there are properties under this path, false otherwise.
Parameters: configPath the configuration path from where to load the properties. defaults the property set that acts as fallback to provide default values.
Returns: the loaded properties.
Throws: ConfigStoreException if an error occured.
Parameters: configPath the configuration path that specifies where to store the properties. config the properties which should be stored.
Throws: ConfigStoreException if an error occured.