added functionality for more info page

git-svn-id: svn://10.0.0.236/trunk@6367 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timm%netscape.com
1998-07-24 04:33:22 +00:00
parent b4266e4fea
commit 1ef3f5a16c
4 changed files with 205 additions and 38 deletions

View File

@@ -43,11 +43,12 @@ public class NameValueSet
Hashtable nameValuePairs;
boolean ignoreSections = false;
final static int READ_AHEAD = 8192;
File initFile = null;
protected void init()
{
nameValuePairs = new Hashtable();
initFile = null;
}
/* delimiterB between name-value pairs, delimiterA between the name and value */
@@ -111,6 +112,7 @@ public class NameValueSet
BufferedReader bufferedReader = new BufferedReader( new FileReader( inputFile ) );
this.read( bufferedReader );
initFile = inputFile;
}
public NameValueSet()
@@ -256,6 +258,11 @@ public class NameValueSet
nameValuePairs.put( name, value );
}
public File getInitFile()
{
return initFile;
}
public final void printNameValueSet()
{
for ( Enumeration names = nameValuePairs.keys(); names.hasMoreElements(); )