com.valhalla.settings
Class SettingsProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.valhalla.settings.SettingsProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class SettingsProperties
extends java.util.Properties

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SettingsProperties()
           
 
Method Summary
 boolean getBoolean(java.lang.String key)
          Gets a boolean value
 void loadSettings(java.lang.String file)
           
 void saveSettings(java.lang.String file, java.lang.String comments)
           
 void setBoolean(java.lang.String key, boolean value)
          Sets a boolean
 
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

SettingsProperties

public SettingsProperties()
Method Detail

setBoolean

public void setBoolean(java.lang.String key,
                       boolean value)
Sets a boolean

Parameters:
key - the key to set
value - the value to set the key to

getBoolean

public boolean getBoolean(java.lang.String key)
Gets a boolean value

Parameters:
key - the key to get a boolean for
Returns:
a boolean based on the key

loadSettings

public void loadSettings(java.lang.String file)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

saveSettings

public void saveSettings(java.lang.String file,
                         java.lang.String comments)
                  throws java.io.IOException
Throws:
java.io.IOException