Package org.ini4j
Class IniPreferences.SectionPreferences
Object
Preferences
AbstractPreferences
org.ini4j.IniPreferences.SectionPreferences
- Enclosing class:
IniPreferences
-
Field Summary
Fields inherited from class java.util.prefs.AbstractPreferences
lock, newNode
Fields inherited from class java.util.prefs.Preferences
MAX_KEY_LENGTH, MAX_NAME_LENGTH, MAX_VALUE_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
Implements thechildrenNamesSpi
method as per the specification inAbstractPreferences.childrenNamesSpi()
.protected IniPreferences.SectionPreferences
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 String
Implements thegetSpi
method as per the specification inAbstractPreferences.getSpi(String)
.protected String[]
keysSpi()
Implements thekeysSpi
method as per the specification inAbstractPreferences.keysSpi()
.protected void
Implements theputSpi
method as per the specification inAbstractPreferences.putSpi(String,String)
.protected void
Implements theremoveNodeSpi
method as per the specification inAbstractPreferences.removeNodeSpi()
.protected void
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
Methods inherited from class java.util.prefs.Preferences
importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot
-
Method Details
-
flush
Implements theflush
method as per the specification inPreferences.flush()
. This implementation just call parent'sflush()
method.- Overrides:
flush
in classAbstractPreferences
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
sync
Implements thesync
method as per the specification inPreferences.sync()
. This implementation just call parent'ssync()
method.- Overrides:
sync
in classAbstractPreferences
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
getSpi
Implements thegetSpi
method as per the specification inAbstractPreferences.getSpi(String)
.- Specified by:
getSpi
in classAbstractPreferences
- 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
Implements thechildrenNamesSpi
method as per the specification inAbstractPreferences.childrenNamesSpi()
. This implementation allways returns an empty array.- Specified by:
childrenNamesSpi
in classAbstractPreferences
- Returns:
- an emty array.
- Throws:
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(String name) throws UnsupportedOperationException Implements thechildSpi
method as per the specification inAbstractPreferences.childSpi(String)
. This implementation doesn't support this operation.- Specified by:
childSpi
in classAbstractPreferences
- Parameters:
name
- child name- Returns:
- child node
- Throws:
UnsupportedOperationException
- this implementation allways throws this exception
-
flushSpi
Implements theflushSpi
method as per the specification inAbstractPreferences.flushSpi()
. This implementation does nothing.- Specified by:
flushSpi
in classAbstractPreferences
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
keysSpi
Implements thekeysSpi
method as per the specification inAbstractPreferences.keysSpi()
.- Specified by:
keysSpi
in classAbstractPreferences
- Returns:
- an array of the keys that have an associated value in this preference node.
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
putSpi
Implements theputSpi
method as per the specification inAbstractPreferences.putSpi(String,String)
.- Specified by:
putSpi
in classAbstractPreferences
- Parameters:
key
- key to set value forvalue
- new value of key
-
removeNodeSpi
Implements theremoveNodeSpi
method as per the specification inAbstractPreferences.removeNodeSpi()
.- Specified by:
removeNodeSpi
in classAbstractPreferences
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
removeSpi
Implements theremoveSpi
method as per the specification inAbstractPreferences.removeSpi(String)
.- Specified by:
removeSpi
in classAbstractPreferences
- Parameters:
key
- key to remove
-
syncSpi
Implements thesyncSpi
method as per the specification inAbstractPreferences.syncSpi()
. This implementation does nothing.- Specified by:
syncSpi
in classAbstractPreferences
- Throws:
BackingStoreException
- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-