org.hawk.util
Class PropertiesUtil

java.lang.Object
  extended by org.hawk.util.PropertiesUtil

public class PropertiesUtil
extends java.lang.Object

An utility to save and load properties.


Constructor Summary
PropertiesUtil()
           
 
Method Summary
static java.util.Properties loadProperties(java.lang.String file)
          This loads properties from the file.
static boolean saveProperties(java.util.Properties props, java.lang.String file)
          This saves properties into the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtil

public PropertiesUtil()
Method Detail

saveProperties

public static boolean saveProperties(java.util.Properties props,
                                     java.lang.String file)
This saves properties into the file.

Parameters:
props -
file -
Returns:
true on success false otherwise.

loadProperties

public static java.util.Properties loadProperties(java.lang.String file)
This loads properties from the file.

Parameters:
props -
file -
Returns:
Properties