com.ice.pref
Class UserPrefsStreamLoader

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

public class UserPrefsStreamLoader
extends UserPrefsLoader

This class extends the UserPrefsLoader to allow loading and storing via InputStreams and OutputStreams.

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
UserPrefsStreamLoader()
           
UserPrefsStreamLoader(java.io.InputStream in, java.io.OutputStream out)
           
UserPrefsStreamLoader(java.lang.String appName, java.lang.String userName, java.lang.String prefsName)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 void loadPreferences(UserPrefs prefs)
           
 void setInputStream(java.io.InputStream in)
           
 void setOutputStream(java.io.OutputStream out)
           
 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

UserPrefsStreamLoader

public UserPrefsStreamLoader()

UserPrefsStreamLoader

public UserPrefsStreamLoader(java.io.InputStream in,
                             java.io.OutputStream out)

UserPrefsStreamLoader

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

getInputStream

public java.io.InputStream getInputStream()

setInputStream

public void setInputStream(java.io.InputStream in)

getOutputStream

public java.io.OutputStream getOutputStream()

setOutputStream

public void setOutputStream(java.io.OutputStream out)

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.