Package org.ini4j
Class IniPreferences.SectionPreferences
- java.lang.Object
-
- java.util.prefs.Preferences
-
- java.util.prefs.AbstractPreferences
-
- org.ini4j.IniPreferences.SectionPreferences
-
- Enclosing class:
- IniPreferences
protected class IniPreferences.SectionPreferences extends java.util.prefs.AbstractPreferences
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]
childrenNamesSpi()
Implements thechildrenNamesSpi
method as per the specification inAbstractPreferences.childrenNamesSpi()
.protected IniPreferences.SectionPreferences
childSpi(java.lang.String name)
Implements thechildSpi
method as per the specification inAbstractPreferences.childSpi(String)
.void
flush()
Implements theflush
method as per the specification inPreferences.flush()
.protected void
flushSpi()
Implements theflushSpi
method as per the specification inAbstractPreferences.flushSpi()
.protected java.lang.String
getSpi(java.lang.String key)
Implements thegetSpi
method as per the specification inAbstractPreferences.getSpi(String)
.protected java.lang.String[]
keysSpi()
Implements thekeysSpi
method as per the specification inAbstractPreferences.keysSpi()
.protected void
putSpi(java.lang.String key, java.lang.String value)
Implements theputSpi
method as per the specification inAbstractPreferences.putSpi(String,String)
.protected void
removeNodeSpi()
Implements theremoveNodeSpi
method as per the specification inAbstractPreferences.removeNodeSpi()
.protected void
removeSpi(java.lang.String key)
Implements theremoveSpi
method as per the specification inAbstractPreferences.removeSpi(String)
.void
sync()
Implements thesync
method as per the specification inPreferences.sync()
.protected void
syncSpi()
Implements thesyncSpi
method as per the specification inAbstractPreferences.syncSpi()
.-
Methods inherited from class java.util.prefs.AbstractPreferences
absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear, exportNode, exportSubtree, get, getBoolean, getByteArray, getChild, getDouble, getFloat, getInt, getLong, isRemoved, isUserNode, keys, name, node, nodeExists, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, toString
-
-
-
-
Method Detail
-
flush
public void flush() throws java.util.prefs.BackingStoreException
Implements theflush
method as per the specification inPreferences.flush()
. This implementation just call parent'sflush()
method.- Overrides:
flush
in classjava.util.prefs.AbstractPreferences
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
sync
public void sync() throws java.util.prefs.BackingStoreException
Implements thesync
method as per the specification inPreferences.sync()
. This implementation just call parent'ssync()
method.- Overrides:
sync
in classjava.util.prefs.AbstractPreferences
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
getSpi
protected java.lang.String getSpi(java.lang.String key)
Implements thegetSpi
method as per the specification inAbstractPreferences.getSpi(String)
.- Specified by:
getSpi
in classjava.util.prefs.AbstractPreferences
- Parameters:
key
- key to getvalue for- Returns:
- if the value associated with the specified key at this preference node, or null if there is no association for this key, or the association cannot be determined at this time.
-
childrenNamesSpi
protected java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStoreException
Implements thechildrenNamesSpi
method as per the specification inAbstractPreferences.childrenNamesSpi()
. This implementation allways returns an empty array.- Specified by:
childrenNamesSpi
in classjava.util.prefs.AbstractPreferences
- Returns:
- an emty array.
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
childSpi
protected IniPreferences.SectionPreferences childSpi(java.lang.String name) throws java.lang.UnsupportedOperationException
Implements thechildSpi
method as per the specification inAbstractPreferences.childSpi(String)
. This implementation doesn't support this operation.- Specified by:
childSpi
in classjava.util.prefs.AbstractPreferences
- Parameters:
name
- child name- Returns:
- child node
- Throws:
java.lang.UnsupportedOperationException
- this implementation allways throws this exception
-
flushSpi
protected void flushSpi() throws java.util.prefs.BackingStoreException
Implements theflushSpi
method as per the specification inAbstractPreferences.flushSpi()
. This implementation does nothing.- Specified by:
flushSpi
in classjava.util.prefs.AbstractPreferences
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
keysSpi
protected java.lang.String[] keysSpi() throws java.util.prefs.BackingStoreException
Implements thekeysSpi
method as per the specification inAbstractPreferences.keysSpi()
.- Specified by:
keysSpi
in classjava.util.prefs.AbstractPreferences
- Returns:
- an array of the keys that have an associated value in this preference node.
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
putSpi
protected void putSpi(java.lang.String key, java.lang.String value)
Implements theputSpi
method as per the specification inAbstractPreferences.putSpi(String,String)
.- Specified by:
putSpi
in classjava.util.prefs.AbstractPreferences
- Parameters:
key
- key to set value forvalue
- new value of key
-
removeNodeSpi
protected void removeNodeSpi() throws java.util.prefs.BackingStoreException
Implements theremoveNodeSpi
method as per the specification inAbstractPreferences.removeNodeSpi()
.- Specified by:
removeNodeSpi
in classjava.util.prefs.AbstractPreferences
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
removeSpi
protected void removeSpi(java.lang.String key)
Implements theremoveSpi
method as per the specification inAbstractPreferences.removeSpi(String)
.- Specified by:
removeSpi
in classjava.util.prefs.AbstractPreferences
- Parameters:
key
- key to remove
-
syncSpi
protected void syncSpi() throws java.util.prefs.BackingStoreException
Implements thesyncSpi
method as per the specification inAbstractPreferences.syncSpi()
. This implementation does nothing.- Specified by:
syncSpi
in classjava.util.prefs.AbstractPreferences
- Throws:
java.util.prefs.BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
-