private void loadConfiguration(){
  Properties properties=new Properties();
  File file=new File(getConfigFileName());
  if (file.exists() && file.canRead() && file.isFile()) {
    FileInputStream in;
    try {
      in=new FileInputStream(getConfigFileName());
      properties.load(in);
      in.close();
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
    in=null;
  }
  Enumeration<Object> e=properties.keys();
  while (e.hasMoreElements()) {
    String key=(String)e.nextElement();
    setParameter(key,properties.getProperty(key));
  }
  properties.clear();
}

private void loadConfiguration ( ) { Properties properties = new Properties ( ) ; File file = new File ( getConfigFileName ( ) ) ; if ( file . exists ( ) && file . canRead ( ) && file . isFile ( ) ) { FileInputStream in ; try { in = new FileInputStream ( getConfigFileName ( ) ) ; properties . load ( in ) ; in . close ( ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } in = null ; } Enumeration < Object > e = properties . keys ( ) ; while ( e . hasMoreElements ( ) ) { String key = ( String ) e . nextElement ( ) ; setParameter ( key , properties . getProperty ( key ) ) ; } properties . clear ( ) ; }
load parameters from configuration file
