|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--com.SoftWoehr.JTOpenContrib.MEU.MEUProperties
A Properties entity for MEU
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 |
public MEUProperties()
public MEUProperties(java.lang.String filename)
filename
- Properties file on local file system.Method Detail |
public void loadFromFile(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
filename
- Local file to fetch property strings fromFileNotFoundException
- Couldn't find that path.IOException
- Couldn't read for some reason.public void storeToFile(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
filename
- File on local file system to store props. to.FileNotFoundException
- Couldn't find that path.IOException
- Couldn't write for some reason.public int getIntProperty(java.lang.String property) throws MEUProperties.NoSuchPropertyException, MEUProperties.InvalidIntPropertyException
property
- Name of property.MEUProperties.NoSuchPropertyException
- No such.MEUProperties.InvalidIntPropertyException
- Wasn't a base10 int.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |