com.rhi.architecture.lang
Class PropertyUtils

java.lang.Object
  extended bycom.rhi.architecture.lang.PropertyUtils

public class PropertyUtils
extends java.lang.Object

PropertyUtils - Utility methods for dealing w/ Property files.

Author:
Vaibhav Ranjangaonkar

Constructor Summary
PropertyUtils()
           
 
Method Summary
static java.util.Properties loadProperties(java.lang.String filename)
          vanilla loading method for Properties files.
static java.util.Properties loadProperties(java.lang.String fileName, boolean isComposite)
          load a .properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtils

public PropertyUtils()
Method Detail

loadProperties

public static java.util.Properties loadProperties(java.lang.String filename)
                                           throws PropertiesException
vanilla loading method for Properties files. Hides some of the details.

Parameters:
filename -
Returns:
Properties object.
Throws:
PropertiesException

loadProperties

public static java.util.Properties loadProperties(java.lang.String fileName,
                                                  boolean isComposite)
                                           throws PropertiesException
load a .properties file. Takes a flag specifying whether or not it should resolve include references. (isComposite==true will attempt to load nested property file references. false will not)

Parameters:
fileName -
isComposite -
Returns:
Properties object.
Throws:
PropertiesException


Copyright © 2002-2004 Robert Half International. All Rights Reserved.