|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Utils.ParamsCollector
Class that may be used to retrieve parameters from a file. Each line of this file must set a parameter. A line takes the form : "parameter = value // comments".
| Field Summary | |
|---|---|
static java.util.Hashtable |
hash
Hastable used by the ParamsCollector |
private static java.lang.String |
parametersFile
|
| Constructor Summary | |
|---|---|
ParamsCollector()
|
|
| Method Summary | |
|---|---|
private static void |
addParameter(java.lang.String line)
|
static java.lang.String |
convertIntoString()
Return a string representation of all parameters and associated values |
static java.util.Hashtable |
fillHashTable(java.lang.String fileName)
Init method to fill the Hashtable with every file's values |
static java.lang.String |
getValue(java.lang.String param)
|
static void |
main(java.lang.String[] args)
A test routine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.util.Hashtable hash
private static java.lang.String parametersFile
| Constructor Detail |
public ParamsCollector()
| Method Detail |
public static java.util.Hashtable fillHashTable(java.lang.String fileName)
private static void addParameter(java.lang.String line)
public static java.lang.String getValue(java.lang.String param)
param - The name of a parameter
public static java.lang.String convertIntoString()
public static void main(java.lang.String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||