net.sf.whatsnew.config
Class Config

java.lang.Object
  |
  +--net.sf.whatsnew.config.Config

public class Config
extends java.lang.Object

Config file wrapper. Supports user given properties file

Version:
$Id: Config.java,v 1.1 2004/05/13 01:22:36 dquintela Exp $
Author:
Diogo Quintela

Constructor Summary
Config()
          Creates a new Config object.
Config(java.io.File configProperties)
          Creates a new Config object.
 
Method Summary
 java.lang.String getString(java.lang.String key)
          Obtain config entry based on key value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config()
Creates a new Config object.

Config

public Config(java.io.File configProperties)
       throws java.io.FileNotFoundException,
              java.io.IOException
Creates a new Config object.
Parameters:
configProperties - The external properties files to load
Throws:
java.io.FileNotFoundException - If file doesn't exist
java.io.IOException - in case of IO error
Method Detail

getString

public java.lang.String getString(java.lang.String key)
Obtain config entry based on key value
Parameters:
key - The key to lookup for
Returns:
The config entry


Copyright © 2004 Sourceforge. All Rights Reserved.