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 thechildrenNamesSpimethod as per the specification inAbstractPreferences.childrenNamesSpi().protected IniPreferences.SectionPreferenceschildSpi(java.lang.String name)Implements thechildSpimethod as per the specification inAbstractPreferences.childSpi(String).voidflush()Implements theflushmethod as per the specification inPreferences.flush().protected voidflushSpi()Implements theflushSpimethod as per the specification inAbstractPreferences.flushSpi().protected java.lang.StringgetSpi(java.lang.String key)Implements thegetSpimethod as per the specification inAbstractPreferences.getSpi(String).protected java.lang.String[]keysSpi()Implements thekeysSpimethod as per the specification inAbstractPreferences.keysSpi().protected voidputSpi(java.lang.String key, java.lang.String value)Implements theputSpimethod as per the specification inAbstractPreferences.putSpi(String,String).protected voidremoveNodeSpi()Implements theremoveNodeSpimethod as per the specification inAbstractPreferences.removeNodeSpi().protected voidremoveSpi(java.lang.String key)Implements theremoveSpimethod as per the specification inAbstractPreferences.removeSpi(String).voidsync()Implements thesyncmethod as per the specification inPreferences.sync().protected voidsyncSpi()Implements thesyncSpimethod 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.BackingStoreExceptionImplements theflushmethod as per the specification inPreferences.flush(). This implementation just call parent'sflush()method.- Overrides:
flushin 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.BackingStoreExceptionImplements thesyncmethod as per the specification inPreferences.sync(). This implementation just call parent'ssync()method.- Overrides:
syncin 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 thegetSpimethod as per the specification inAbstractPreferences.getSpi(String).- Specified by:
getSpiin 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.BackingStoreExceptionImplements thechildrenNamesSpimethod as per the specification inAbstractPreferences.childrenNamesSpi(). This implementation allways returns an empty array.- Specified by:
childrenNamesSpiin 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 thechildSpimethod as per the specification inAbstractPreferences.childSpi(String). This implementation doesn't support this operation.- Specified by:
childSpiin 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.BackingStoreExceptionImplements theflushSpimethod as per the specification inAbstractPreferences.flushSpi(). This implementation does nothing.- Specified by:
flushSpiin 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.BackingStoreExceptionImplements thekeysSpimethod as per the specification inAbstractPreferences.keysSpi().- Specified by:
keysSpiin 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 theputSpimethod as per the specification inAbstractPreferences.putSpi(String,String).- Specified by:
putSpiin classjava.util.prefs.AbstractPreferences- Parameters:
key- key to set value forvalue- new value of key
-
removeNodeSpi
protected void removeNodeSpi() throws java.util.prefs.BackingStoreExceptionImplements theremoveNodeSpimethod as per the specification inAbstractPreferences.removeNodeSpi().- Specified by:
removeNodeSpiin 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 theremoveSpimethod as per the specification inAbstractPreferences.removeSpi(String).- Specified by:
removeSpiin classjava.util.prefs.AbstractPreferences- Parameters:
key- key to remove
-
syncSpi
protected void syncSpi() throws java.util.prefs.BackingStoreExceptionImplements thesyncSpimethod as per the specification inAbstractPreferences.syncSpi(). This implementation does nothing.- Specified by:
syncSpiin 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.
-
-