com.valhalla.settings
Class SettingsProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by com.valhalla.settings.SettingsProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

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, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
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