Package org.ini4j
Class IniPreferences.SectionPreferences
- Object
-
- Preferences
-
- AbstractPreferences
-
- org.ini4j.IniPreferences.SectionPreferences
-
- Enclosing class:
- IniPreferences
protected class IniPreferences.SectionPreferences extends AbstractPreferences
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]childrenNamesSpi()Implements thechildrenNamesSpimethod as per the specification inAbstractPreferences.childrenNamesSpi().protected IniPreferences.SectionPreferenceschildSpi(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 StringgetSpi(String key)Implements thegetSpimethod as per the specification inAbstractPreferences.getSpi(String).protected String[]keysSpi()Implements thekeysSpimethod as per the specification inAbstractPreferences.keysSpi().protected voidputSpi(String key, String value)Implements theputSpimethod as per the specification inAbstractPreferences.putSpi(String,String).protected voidremoveNodeSpi()Implements theremoveNodeSpimethod as per the specification inAbstractPreferences.removeNodeSpi().protected voidremoveSpi(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 BackingStoreExceptionImplements theflushmethod as per the specification inPreferences.flush(). This implementation just call parent'sflush()method.- Overrides:
flushin classAbstractPreferences- Throws:
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 BackingStoreExceptionImplements thesyncmethod as per the specification inPreferences.sync(). This implementation just call parent'ssync()method.- Overrides:
syncin classAbstractPreferences- Throws:
BackingStoreException- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
getSpi
protected String getSpi(String key)
Implements thegetSpimethod as per the specification inAbstractPreferences.getSpi(String).- Specified by:
getSpiin 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
protected String[] childrenNamesSpi() throws BackingStoreExceptionImplements thechildrenNamesSpimethod as per the specification inAbstractPreferences.childrenNamesSpi(). This implementation allways returns an empty array.- Specified by:
childrenNamesSpiin 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 thechildSpimethod as per the specification inAbstractPreferences.childSpi(String). This implementation doesn't support this operation.- Specified by:
childSpiin classAbstractPreferences- Parameters:
name- child name- Returns:
- child node
- Throws:
UnsupportedOperationException- this implementation allways throws this exception
-
flushSpi
protected void flushSpi() throws BackingStoreExceptionImplements theflushSpimethod as per the specification inAbstractPreferences.flushSpi(). This implementation does nothing.- Specified by:
flushSpiin classAbstractPreferences- Throws:
BackingStoreException- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
keysSpi
protected String[] keysSpi() throws BackingStoreExceptionImplements thekeysSpimethod as per the specification inAbstractPreferences.keysSpi().- Specified by:
keysSpiin 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
protected void putSpi(String key, String value)Implements theputSpimethod as per the specification inAbstractPreferences.putSpi(String,String).- Specified by:
putSpiin classAbstractPreferences- Parameters:
key- key to set value forvalue- new value of key
-
removeNodeSpi
protected void removeNodeSpi() throws BackingStoreExceptionImplements theremoveNodeSpimethod as per the specification inAbstractPreferences.removeNodeSpi().- Specified by:
removeNodeSpiin classAbstractPreferences- Throws:
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(String key)
Implements theremoveSpimethod as per the specification inAbstractPreferences.removeSpi(String).- Specified by:
removeSpiin classAbstractPreferences- Parameters:
key- key to remove
-
syncSpi
protected void syncSpi() throws BackingStoreExceptionImplements thesyncSpimethod as per the specification inAbstractPreferences.syncSpi(). This implementation does nothing.- Specified by:
syncSpiin classAbstractPreferences- Throws:
BackingStoreException- if this operation cannot be completed due to a failure in the backing store, or inability to communicate with it.
-
-