org.apache.lokahi.core.common.util
Class PropertiesFile

java.lang.Object
  extended by org.apache.lokahi.core.common.util.PropertiesFile

public class PropertiesFile
extends java.lang.Object

Version:
$Id: PropertiesFile.java,v 1.1 2006/03/02 19:19:49 drtobes Exp $
Author:
Stephen Toback

Method Summary
static boolean getBooleanValue(java.lang.String propertyName)
          This method gets the value of the property supplied, from the properties file.
static java.lang.String getConstantValue(java.lang.String propertyName)
          This method gets the value of the property supplied, from the properties file.
static int getIntValue(java.lang.String propertyName)
          This method gets the value of the property supplied, from the properties file.
static void load(java.io.InputStream i)
           
static void load(java.lang.String s)
           
static void setConstantValue(java.lang.String name, java.lang.String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static void load(java.io.InputStream i)

load

public static void load(java.lang.String s)

setConstantValue

public static void setConstantValue(java.lang.String name,
                                    java.lang.String val)

getConstantValue

public static java.lang.String getConstantValue(java.lang.String propertyName)
This method gets the value of the property supplied, from the properties file. If the property is not present, it returns an empty string


getIntValue

public static int getIntValue(java.lang.String propertyName)
This method gets the value of the property supplied, from the properties file. If the property is not present, it returns an empty string


getBooleanValue

public static boolean getBooleanValue(java.lang.String propertyName)
This method gets the value of the property supplied, from the properties file. If the property is not present, it returns an empty string