|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.lib.Config
org.eclipse.jgit.lib.StoredConfig
public abstract class StoredConfig
Persistent configuration that can be stored and loaded from a location.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jgit.lib.Config |
---|
Config.ConfigEnum, Config.SectionParser<T> |
Constructor Summary | |
---|---|
StoredConfig()
Create a configuration with no default fallback. |
|
StoredConfig(Config defaultConfig)
Create an empty configuration with a fallback for missing keys. |
Method Summary | |
---|---|
void |
clear()
Clear the configuration file |
abstract void |
load()
Load the configuration from the persistent store. |
abstract void |
save()
Save the configuration to the persistent store. |
Methods inherited from class org.eclipse.jgit.lib.Config |
---|
addChangeListener, fireConfigChangedEvent, fromText, get, getBoolean, getBoolean, getEnum, getEnum, getInt, getInt, getLong, getLong, getNames, getNames, getSections, getString, getStringList, getSubsections, notifyUponTransientChanges, setBoolean, setEnum, setInt, setLong, setString, setStringList, toText, uncache, unset, unsetSection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoredConfig()
public StoredConfig(Config defaultConfig)
defaultConfig
- the base configuration to be consulted when a key is missing
from this configuration instance.Method Detail |
---|
public abstract void load() throws IOException, ConfigInvalidException
If the configuration does not exist, this configuration is cleared, and thus behaves the same as though the backing store exists, but is empty.
IOException
- the configuration could not be read (but does exist).
ConfigInvalidException
- the configuration is not properly formatted.public abstract void save() throws IOException
IOException
- the configuration could not be written.public void clear()
Config
clear
in class Config
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |