|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--jade.util.leap.Properties
|
+--jade.util.BasicProperties
|
+--jade.util.ImportableProperties
|
+--jade.util.EnhancedProperties
Provides a concrete implementation of ImportableProperties useable in the J2SE (desktop) world. This class relates to four others as follows:
return new InputStreamReader(new FileInputStream(aFileName));
whereas in the CLDC environment it would be:
return new InputStreamReader(Connector.openInputStream(aFileName));
| Field Summary |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
EnhancedProperties()
Construct empty property collection. |
|
EnhancedProperties(java.lang.String aFileName)
Construct properties from specified file. |
|
EnhancedProperties(java.lang.String[] theArgs)
Construct properties from arguments. |
|
| Method Summary | |
protected java.io.Reader |
fileReader(java.lang.String aFileName)
Construct a Reader for the specified file name. |
static void |
main(java.lang.String[] args)
For testing. |
| Methods inherited from class jade.util.ImportableProperties |
addFromFile, getImportKey, setImportKey, storableProperty |
| Methods inherited from class jade.util.BasicProperties |
addFromReader, copyProperties, doSubstitutions, doSubstitutions, extractSubset, get, getBooleanProperty, getEnvironmentProperty, getIntProperty, getOneLine, getProperty, getProperty, getPropertyIgnoreCase, getRawProperty, isCandidate, isolateKey, isolateValue, list, load, nextArgIndex, parseArgs, parseArgument, prepareArgs, put, readLine, renameKey, setBooleanProperty, setIntProperty, setProperty, setPropertyIfNot, sortedKeys, specialHandling, store, toStringArray, valueFilter |
| Methods inherited from class jade.util.leap.Properties |
load, store |
| Methods inherited from class java.util.Properties |
list, propertyNames, save |
| 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 EnhancedProperties()
public EnhancedProperties(java.lang.String[] theArgs)
theArgs - The applications original arguments.
public EnhancedProperties(java.lang.String aFileName)
throws java.io.IOException
aFileName - The name of the properties file.
java.io.IOException - if anything goes wrong.| Method Detail |
public static void main(java.lang.String[] args)
protected java.io.Reader fileReader(java.lang.String aFileName)
throws java.io.IOException
fileReader in class ImportablePropertiesaFileName - The name of the file.
java.io.IOException - if anything goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||