gov.lanl.Pids
Class ConfigFileHelper

java.lang.Object
  |
  +--gov.lanl.Pids.ConfigFileHelper

public class ConfigFileHelper
extends java.lang.Object

 

Constructor Summary
ConfigFileHelper()
           
 
Method Summary
 java.lang.String getEntry(java.lang.String aConfigFileNameOrUrl, java.lang.String aTag)
          reads a config file entry that is marked by the specified tag and returns the data that follows the tag and '=' character Example: str = getEntry("afile.cfg", "ImageDirectory") afile.cfg ImageDirectory = \images -> str = \images
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFileHelper

public ConfigFileHelper()
Method Detail

getEntry

public java.lang.String getEntry(java.lang.String aConfigFileNameOrUrl,
                                 java.lang.String aTag)
reads a config file entry that is marked by the specified tag and returns the data that follows the tag and '=' character Example: str = getEntry("afile.cfg", "ImageDirectory") afile.cfg ImageDirectory = \images -> str = \images

Parameters:
aConfigFileNameOrUrl - the name of the config file
aTag - the tag identifying the config file entry
Returns:
the data following the tag and '=' entry or null if tag not found