Code example for Properties

Methods: load

0
 * @author Guy Korland 
 * @date April 13, 2006 
 */ 
public class PropertiesFile { 
 
  private Properties m_properties = new Properties();
 
  /** 
   * Loads a Properties file. 
   * 
   * @param fileName properties file path 
   * @throws IOException if an error occurred when reading from the Properties file. 
   */ 
  public PropertiesFile(String fileName) throws IOException
  { 
	  FileInputStream fis = null;
	  // 
	  // Parse the Properties file 
	  // 
	  try { 
		  fis = new FileInputStream(new File(fileName));
		  m_properties.load(fis);
	  } 
	  finally 
	  { 
		  if( fis != null) {
        fis.close();