public Generator(String propFile){
  try {
    BufferedInputStream bi=null;
    try {
      bi=new BufferedInputStream(new FileInputStream(propFile));
      props.load(bi);
    }
  finally {
      if (bi != null) {
        bi.close();
      }
    }
  }
 catch (  Exception e) {
    setDefaultProps();
  }
}

public Generator ( String propFile ) { try { BufferedInputStream bi = null ; try { bi = new BufferedInputStream ( new FileInputStream ( propFile ) ) ; props . load ( bi ) ; } finally { if ( bi != null ) { bi . close ( ) ; } } } catch ( Exception e ) { setDefaultProps ( ) ; } }
create a new generator object with properties loaded from a file . if the file does not exist or any other exception occurs during the reading operation the default properties are used .
