brahms.base.util
Class PropertiesLoader
java.lang.Object
brahms.base.util.PropertiesLoader
public class PropertiesLoader
- extends java.lang.Object
PropertiesLoader is a utility class to load properties from a
properties file in the form of =.
- Version:
- $Revision: 1.1 $ $Date: 2007/10/10 14:02:57 $ $Author: rvhoof $
- Author:
- Ron van Hoof
Method Summary |
static java.util.Properties |
loadProperties(java.io.File file)
Loads properties from the specified file and returns a new Properties
object with the file's properties. |
static java.util.Properties |
loadProperties(java.io.File file,
java.util.Properties p)
Loads properties from the specified file and returns a new Properties
object with the file's properties. |
static java.util.Properties |
loadProperties(java.lang.String file)
Loads properties from the specified file and returns a new Properties
object with the file's properties. |
static java.util.Properties |
loadProperties(java.lang.String file,
java.util.Properties p)
Loads properties from the specified file and returns a new Properties
object with the file's properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesLoader
public PropertiesLoader()
loadProperties
public static java.util.Properties loadProperties(java.lang.String file)
- Loads properties from the specified file and returns a new Properties
object with the file's properties. This method will try to find the
configuration file using the following methods:
1. The name of the file
2. The agent tries to locate that file by searching the following places:
- Current directory (.)
- JRE/lib
- User's home directory
- Java classpath
- Parameters:
file
- the file from which to load the properties
- Returns:
- Properties the loaded properties, null if the file could not be found
loadProperties
public static java.util.Properties loadProperties(java.lang.String file,
java.util.Properties p)
- Loads properties from the specified file and returns a new Properties
object with the file's properties. This method will try to find the
configuration file using the following methods:
1. The name of the file
2. The agent tries to locate that file by searching the following places:
- Current directory (.)
- JRE/lib
- User's home directory
- Java classpath
- Parameters:
file
- the file from which to load the propertiesp
- the Properties in which to store the loaded properties
- Returns:
- Properties the loaded properties, null if the file could not be found
loadProperties
public static java.util.Properties loadProperties(java.io.File file)
- Loads properties from the specified file and returns a new Properties
object with the file's properties. This method will try to find the
configuration file using the following methods:
1. The name of the file
2. The agent tries to locate that file by searching the following places:
- Current directory (.)
- JRE/lib
- User's home directory
- Java classpath
- Parameters:
file
- the file from which to load the properties
- Returns:
- Properties the loaded properties, null if the file could not be found
loadProperties
public static java.util.Properties loadProperties(java.io.File file,
java.util.Properties p)
- Loads properties from the specified file and returns a new Properties
object with the file's properties. This method will try to find the
configuration file using the following methods:
1. The name of the file
2. The agent tries to locate that file by searching the following places:
- Current directory (.)
- JRE/lib
- User's home directory
- Java classpath
- Parameters:
file
- the file from which to load the propertiesp
- the Properties in which to store the loaded properties
- Returns:
- Properties the loaded properties, null if the file could not be found
Copyright © 1997-2012 All Rights Reserved.