|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.modules.preferences.filesystem.FileConfigStorage
The FileConfigStorage is a storage provider that stores its content on the local filesystem. The directory used contains the data as plain text property files.
| Constructor Summary | |
FileConfigStorage(java.io.File baseDirectory)
Creates a new file config storage and stores the contents in the given directory. |
|
| Method Summary | |
boolean |
isAvailable(java.lang.String configPath)
Tests, whether some configuration data exists for the given configuration. |
org.jfree.util.Configuration |
load(java.lang.String configPath,
org.jfree.util.Configuration defaults)
Loads the properties from the given path, specifying the given properties as default. |
void |
store(java.lang.String configPath,
org.jfree.util.Configuration config)
Stores the given properties on the defined path. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileConfigStorage(java.io.File baseDirectory)
baseDirectory - the directory that should contain the files.| Method Detail |
public void store(java.lang.String configPath,
org.jfree.util.Configuration config)
throws ConfigStoreException
store in interface ConfigStorageconfigPath - the configuration path that specifies where to store the
properties.config - the properties which should be stored.
ConfigStoreException - if an error occured.#storeProperties(java.lang.String, java.util.Properties)
public org.jfree.util.Configuration load(java.lang.String configPath,
org.jfree.util.Configuration defaults)
throws ConfigStoreException
load in interface ConfigStorageconfigPath - the configuration path from where to load the
properties.defaults - the property set that acts as fallback to provide default
values.
ConfigStoreException - if an error occured.public boolean isAvailable(java.lang.String configPath)
isAvailable in interface ConfigStorageconfigPath - the configuration path to the property storage.
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||