com.ice.pref
Class UserPrefsFileLoader

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.ice.pref.UserPrefsLoader
                          |
                          +--com.ice.pref.UserPrefsFileLoader
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, UserPrefsConstants

public class UserPrefsFileLoader
extends UserPrefsLoader

This class extends the "global" properties functionality to provide a facility for loading and storing UserPrefs properties.

Author:
Tim Endres, time@ice.com.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from interface com.ice.pref.UserPrefsConstants
FILE_LOADER, SERVLET_LOADER, STREAM_LOADER
 
Constructor Summary
UserPrefsFileLoader()
           
UserPrefsFileLoader(java.io.File f)
           
UserPrefsFileLoader(java.lang.String appName, java.lang.String userName, java.lang.String prefsName)
           
 
Method Summary
 java.io.File getFile()
           
 void loadPreferences(UserPrefs prefs)
           
 void setFile(java.io.File f)
           
 void storePreferences(UserPrefs prefs)
           
 
Methods inherited from class com.ice.pref.UserPrefsLoader
getAppName, getDefaultLoader, getDefaultLoader, getLoader, getLoader, getPrefsName, getUserName, setAppName, setPrefsName, setUserName
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPrefsFileLoader

public UserPrefsFileLoader()

UserPrefsFileLoader

public UserPrefsFileLoader(java.io.File f)

UserPrefsFileLoader

public UserPrefsFileLoader(java.lang.String appName,
                           java.lang.String userName,
                           java.lang.String prefsName)
Method Detail

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File f)

loadPreferences

public void loadPreferences(UserPrefs prefs)
                     throws java.io.IOException
Specified by:
loadPreferences in class UserPrefsLoader
java.io.IOException

storePreferences

public void storePreferences(UserPrefs prefs)
                      throws java.io.IOException
Specified by:
storePreferences in class UserPrefsLoader
java.io.IOException


Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.