de.goerntkai.toolbox.misc
Class PropertiesUtil

java.lang.Object
  extended byde.goerntkai.toolbox.misc.PropertiesUtil

public abstract class PropertiesUtil
extends java.lang.Object

Provides some tasks for dealing with Properties.

Version:
$Id: PropertiesUtil.java,v 1.1 2007/05/13 14:32:24 GoerntKai Exp $
Author:
Kai Görnt

Method Summary
static java.util.Properties load(java.lang.String theName)
          Loads properties from a given file.
static java.util.Properties load(java.lang.String theName, java.util.Properties theDefaultProperties)
          Loads properties from a given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

load

public static java.util.Properties load(java.lang.String theName)
                                 throws java.io.IOException

Loads properties from a given file.

Preconditions
theName != null
Postconditions
result != null

Parameters:
theName - of the properties file
Returns:
the loaded properties
Throws:
java.io.IOException - when the file is not found or other troubles

load

public static java.util.Properties load(java.lang.String theName,
                                        java.util.Properties theDefaultProperties)
                                 throws java.io.IOException

Loads properties from a given file.

Preconditions
theName != null
theDefaultProperties != null
Postconditions
result != null

Parameters:
theName - of the properties file
theDefaultProperties - to use
Returns:
the loaded properties
Throws:
java.io.IOException - when the file is not found or other troubles


Copyright © 2004-2007 Kai Görnt. All Rights Reserved.