| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.prefs.Preferences
java.util.prefs.AbstractPreferences
org.ini4j.IniPreferences
public class IniPreferences
| Nested Class Summary | |
|---|---|
| protected  class | IniPreferences.SectionPreferences | 
| Field Summary | |
|---|---|
| private  Ini | _iniunderlaying Iniimplementation | 
| private
      static java.lang.String[] | EMPTYfrequently used empty String array | 
| 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 | 
| Constructor Summary | |
|---|---|
| IniPreferences(Ini ini)Constructs a new preferences node on top of Iniinstance. | |
| IniPreferences(java.io.InputStream input)Constructs a new preferences node based on newly loaded Iniinstance. | |
| IniPreferences(java.io.Reader input)Constructs a new preferences node based on newly loaded Iniinstance. | |
| IniPreferences(java.net.URL input)Constructs a new preferences node based on newly loaded Iniinstance. | |
| Method Summary | |
|---|---|
| protected  java.lang.String[] | childrenNamesSpi()Implements the childrenNamesSpimethod as
      per the specification inAbstractPreferences.childrenNamesSpi(). | 
| protected
       java.util.prefs.AbstractPreferences | childSpi(java.lang.String name)Implements the childSpimethod as per the
      specification inAbstractPreferences.childSpi(String). | 
| protected  void | flushSpi()Implements the flushSpimethod as per the
      specification inAbstractPreferences.flushSpi(). | 
| protected  Ini | getIni()Provide access to underlaying Iniimplementation. | 
| protected  java.lang.String | getSpi(java.lang.String key)Implements the getSpimethod as per the
      specification inAbstractPreferences.getSpi(String). | 
| protected  java.lang.String[] | keysSpi()Implements the keysSpimethod as per the
      specification inAbstractPreferences.keysSpi(). | 
| protected  void | putSpi(java.lang.String key,
      java.lang.String value)Implements the putSpimethod as per the
      specification inAbstractPreferences.putSpi(String,String). | 
| protected  void | removeNodeSpi()Implements the removeNodeSpimethod as
      per the specification inAbstractPreferences.removeNodeSpi(). | 
| protected  void | removeSpi(java.lang.String key)Implements the removeSpimethod as per
      the specification inAbstractPreferences.removeSpi(String). | 
| protected  void | syncSpi()Implements the syncSpimethod as per the
      specification inAbstractPreferences.syncSpi(). | 
| Methods inherited from class java.util.prefs.AbstractPreferences | 
|---|
| absolutePath, addNodeChangeListener, addPreferenceChangeListener, cachedChildren, childrenNames, clear,
      exportNode, exportSubtree, flush, 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, sync,
      toString | 
| Methods inherited from class java.util.prefs.Preferences | 
|---|
| importPreferences, systemNodeForPackage, systemRoot, userNodeForPackage, userRoot | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private static final java.lang.String[] EMPTY
private Ini _ini
Ini implementation
    
| Constructor Detail | 
|---|
public IniPreferences(Ini ini)
Ini instance.
    
ini - underlaying Ini instance
    
public IniPreferences(java.io.Reader input)
               throws java.io.IOException,
                      InvalidIniFormatException
Ini instance.
    This is just a helper constructor, to make simpler constructing IniPreferences directly from Reader.
    
input - the Reader containing Ini data
      java.io.IOException - if an I/O error occured
      InvalidIniFormatException
        - if Ini parsing error occured
    
public IniPreferences(java.io.InputStream input)
               throws java.io.IOException,
                      InvalidIniFormatException
Ini instance.
    This is just a helper constructor, to make simpler constructing IniPreferences directly from InputStream.
    
input - the InputStream containing Ini data
      java.io.IOException - if an I/O error occured
      InvalidIniFormatException
        - if Ini parsing error occured
    
public IniPreferences(java.net.URL input)
               throws java.io.IOException,
                      InvalidIniFormatException
Ini instance.
    This is just a helper constructor, to make simpler constructing IniPreferences directly from
    URL.
    
input - the URL containing Ini data
      java.io.IOException - if an I/O error occured
      InvalidIniFormatException
        - if Ini parsing error occured
    | Method Detail | 
|---|
protected java.util.prefs.AbstractPreferences childSpi(java.lang.String name)
childSpi method as per the specification in
    AbstractPreferences.childSpi(String).
    
childSpi in class java.util.prefs.AbstractPreferences
    name - child name
      
protected java.lang.String[] childrenNamesSpi()
                                       throws java.util.prefs.BackingStoreException
childrenNamesSpi method as per the specification in AbstractPreferences.childrenNamesSpi().
    
childrenNamesSpi in class java.util.prefs.AbstractPreferences
    java.util.prefs.BackingStoreException - if this operation cannot be completed due to a failure in
        the backing store, or inability to communicate with it.
    
protected void flushSpi()
                 throws java.util.prefs.BackingStoreException
flushSpi method as per the specification in
    AbstractPreferences.flushSpi().
    This implementation does nothing.
    
flushSpi in class java.util.prefs.AbstractPreferences
    java.util.prefs.BackingStoreException - if this operation cannot be completed due to a failure in
        the backing store, or inability to communicate with it.
    
protected java.lang.String getSpi(java.lang.String key)
                           throws java.lang.UnsupportedOperationException
getSpi method as per the specification in
    AbstractPreferences.getSpi(String).
    This implementation doesn't support this operation, so allways throws UnsupportedOperationException.
    
getSpi in class java.util.prefs.AbstractPreferences
    key - key to getvalue for
      java.lang.UnsupportedOperationException - this implementation allways throws this exception
    
protected java.lang.String[] keysSpi()
                              throws java.util.prefs.BackingStoreException
keysSpi method as per the specification in AbstractPreferences.keysSpi().
    This implementation allways return an empty array.
    
keysSpi in class java.util.prefs.AbstractPreferences
    java.util.prefs.BackingStoreException - if this operation cannot be completed due to a failure in
        the backing store, or inability to communicate with it.
    
protected void putSpi(java.lang.String key,
                      java.lang.String value)
               throws java.lang.UnsupportedOperationException
putSpi method as per the specification in AbstractPreferences.putSpi(String,String).
    This implementation doesn;t support this operation, so allways throws UnsupportedOperationException.
    
putSpi in class java.util.prefs.AbstractPreferences
    key - key to set value for
      value - new value for key
      java.lang.UnsupportedOperationException - this implementation allways throws this exception
    
protected void removeNodeSpi()
                      throws java.util.prefs.BackingStoreException,
                             java.lang.UnsupportedOperationException
removeNodeSpi method as per the specification in AbstractPreferences.removeNodeSpi().
    This implementation doesn;t support this operation, so allways throws UnsupportedOperationException.
    
removeNodeSpi in class java.util.prefs.AbstractPreferences
    java.lang.UnsupportedOperationException - this implementation allways throws this exception
      java.util.prefs.BackingStoreException - this implementation never throws this exception
    
protected void removeSpi(java.lang.String key)
                  throws java.lang.UnsupportedOperationException
removeSpi method as per the specification in AbstractPreferences.removeSpi(String).
    
removeSpi in class java.util.prefs.AbstractPreferences
    key - key to remove
      java.lang.UnsupportedOperationException - this implementation allways throws this exception
    
protected void syncSpi()
                throws java.util.prefs.BackingStoreException
syncSpi method as per the specification in AbstractPreferences.syncSpi().
    This implementation does nothing.
    
syncSpi in class java.util.prefs.AbstractPreferences
    java.util.prefs.BackingStoreException - if this operation cannot be completed due to a failure in
        the backing store, or inability to communicate with it.
    protected Ini getIni()
Ini
    implementation.
    
Ini implementation
    | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||