com.generationjava.util
Class PropertiesLoader

java.lang.Object
  |
  +--com.generationjava.util.PropertiesLoader

public class PropertiesLoader
extends java.lang.Object

Find a Properties object from somewhere.


Constructor Summary
PropertiesLoader()
          Uses a java.util.Properties object to load properties into.
PropertiesLoader(java.util.Properties properties)
          Use the passed in properties object if need be.
 
Method Summary
 java.util.Properties findProperties(java.lang.String filename)
          Find a properties with the given filename.
 java.util.Properties loadProperties(java.lang.String pathname)
          Load a Properties file with the given pathname.
 java.util.Properties loadProperties(java.lang.String directory, java.lang.String filename)
          Load a Properties file with the given directory and filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesLoader

public PropertiesLoader()
Uses a java.util.Properties object to load properties into.


PropertiesLoader

public PropertiesLoader(java.util.Properties properties)
Use the passed in properties object if need be.

Method Detail

findProperties

public java.util.Properties findProperties(java.lang.String filename)
Find a properties with the given filename.


loadProperties

public java.util.Properties loadProperties(java.lang.String directory,
                                           java.lang.String filename)
Load a Properties file with the given directory and filename.


loadProperties

public java.util.Properties loadProperties(java.lang.String pathname)
Load a Properties file with the given pathname.



Copyright © 2000-2003 OSJava. All Rights Reserved.