jaige.util
Class Settings

java.lang.Object
  extended by jaige.util.Settings

public class Settings
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Rob Taft

Constructor Summary
Settings(java.io.File f)
           
Settings(java.lang.String filename)
           
 
Method Summary
 boolean exists()
           
 boolean getBooleanSetting(java.lang.String setting)
           
static Settings getDefaultSettings()
           
 double getDoubleSetting(java.lang.String setting)
           
 int getIntSetting(java.lang.String setting)
           
 java.lang.String getSetting(java.lang.String setting)
           
 SortedProperties getSettings()
           
static Settings getSettings(java.lang.String filename)
           
 boolean hasSetting(java.lang.String setting)
           
 void saveSettings()
           
 void setSetting(java.lang.String setting, boolean value)
           
 void setSetting(java.lang.String setting, double value)
           
 void setSetting(java.lang.String setting, int value)
           
 void setSetting(java.lang.String setting, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

public Settings(java.io.File f)

Settings

public Settings(java.lang.String filename)
Method Detail

getSettings

public static Settings getSettings(java.lang.String filename)

getDefaultSettings

public static Settings getDefaultSettings()

exists

public boolean exists()

hasSetting

public boolean hasSetting(java.lang.String setting)

getSetting

public java.lang.String getSetting(java.lang.String setting)

getIntSetting

public int getIntSetting(java.lang.String setting)

getDoubleSetting

public double getDoubleSetting(java.lang.String setting)

getBooleanSetting

public boolean getBooleanSetting(java.lang.String setting)

setSetting

public void setSetting(java.lang.String setting,
                       java.lang.String value)

setSetting

public void setSetting(java.lang.String setting,
                       int value)

setSetting

public void setSetting(java.lang.String setting,
                       double value)

setSetting

public void setSetting(java.lang.String setting,
                       boolean value)

getSettings

public SortedProperties getSettings()

saveSettings

public void saveSettings()