com.SoftWoehr.JTOpenContrib.MEU
Class MEUProperties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--com.SoftWoehr.JTOpenContrib.MEU.MEUProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class MEUProperties
extends java.util.Properties

A Properties entity for MEU

See Also:
Serialized Form

Inner Class Summary
 class MEUProperties.InvalidIntPropertyException
          To respond to requests
 class MEUProperties.NoSuchPropertyException
          To respond to requests
 
Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
MEUProperties()
          Creates new MEUProps
MEUProperties(java.lang.String filename)
          Load properties at creation
 
Method Summary
 int getIntProperty(java.lang.String property)
          Get a specific int property.
 void loadFromFile(java.lang.String filename)
          Reload saved properties from a local file
 void storeToFile(java.lang.String filename)
          Save the properties
 
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

MEUProperties

public MEUProperties()
Creates new MEUProps

MEUProperties

public MEUProperties(java.lang.String filename)
Load properties at creation
Parameters:
filename - Properties file on local file system.
Method Detail

loadFromFile

public void loadFromFile(java.lang.String filename)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
Reload saved properties from a local file
Parameters:
filename - Local file to fetch property strings from
Throws:
FileNotFoundException - Couldn't find that path.
IOException - Couldn't read for some reason.

storeToFile

public void storeToFile(java.lang.String filename)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Save the properties
Parameters:
filename - File on local file system to store props. to.
Throws:
FileNotFoundException - Couldn't find that path.
IOException - Couldn't write for some reason.

getIntProperty

public int getIntProperty(java.lang.String property)
                   throws MEUProperties.NoSuchPropertyException,
                          MEUProperties.InvalidIntPropertyException
Get a specific int property.
Parameters:
property - Name of property.
Returns:
Int value base 10 of property value
Throws:
MEUProperties.NoSuchPropertyException - No such.
MEUProperties.InvalidIntPropertyException - Wasn't a base10 int.