|
||||||||||
| 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
|
+--com.ds.fw.resources.FwProperties
The purpose of this class is to load a property file and then to extract a property value by its key.
| Field Summary |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
FwProperties()
Constructor. |
|
FwProperties(java.io.InputStream in)
Constructor. |
|
FwProperties(java.util.Locale inLocale)
Constructor. |
|
FwProperties(java.lang.String pfile)
Constructor. |
|
| Method Summary | |
java.lang.Object |
getObject(java.lang.String key)
Gets a property value by its key. |
java.lang.String |
getString(java.lang.String key)
Gets a property value as a string by its key. |
java.io.InputStream |
loadStream(java.io.InputStream in)
Loads a property file from a InputStream. |
java.io.InputStream |
loadStream(java.lang.String pfile)
Loads a property file. |
java.io.InputStream |
loadStream1(java.lang.String pfile)
Loads a property file from the base path. |
| 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 FwProperties(java.lang.String pfile)
throws java.io.IOException
pfile - the property file to be load
java.io.IOException - if the file could not be open
public FwProperties(java.util.Locale inLocale)
throws java.io.IOException
inLocale - the locale which default property file will be loaded
java.io.IOException - if the file could not be open
public FwProperties()
throws java.io.IOException
java.io.IOException - if the file could not be open
public FwProperties(java.io.InputStream in)
throws java.io.IOException
in - the input stream
java.io.IOException - if the stream could not be opened| Method Detail |
public java.io.InputStream loadStream1(java.lang.String pfile)
pfile - file name
public java.io.InputStream loadStream(java.lang.String pfile)
pfile - file to load
public java.io.InputStream loadStream(java.io.InputStream in)
in - the stream to be opened
public java.lang.String getString(java.lang.String key)
key - property key
public java.lang.Object getObject(java.lang.String key)
key - property key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||