private void init() throws AdeException {
  dbPropertiesInitialized=false;
  final Properties prop=new Properties();
  try (FileInputStream fis=new FileInputStream(propertiesFileName)){
    prop.load(fis);
    dbURL=prop.getProperty(DATABASE_URL_PARAM);
    dbDriver=prop.getProperty(DATABASE_DRIVER_PARAM);
    dbUserName=prop.getProperty(DATABASE_USER_PARAM);
    dbUserPassword=prop.getProperty(DATABASE_PASSWORD_PARAM);
    if (dbURL != null) {
      dbPropertiesInitialized=true;
      dbURL=dbURL.trim();
      dbName=parseDBName();
    }
    if (dbDriver != null) {
      dbDriver=dbDriver.trim();
    }
 else {
      dbPropertiesInitialized=false;
    }
    if (dbUserName != null) {
      dbUserName=dbUserName.trim();
    }
    if (dbUserPassword != null) {
      dbUserPassword=dbUserPassword.trim();
    }
  }
 catch (  FileNotFoundException e) {
    throw new AdeExtUsageException("Properties file " + propertiesFileName + " not found.",e);
  }
catch (  IOException e) {
    throw new AdeExtUsageException("Problem in reading properties file " + propertiesFileName + ".",e);
  }
catch (  Exception e) {
    throw new AdeExtUsageException("Problem in processing properties file " + propertiesFileName + ".",e);
  }
}

private void init ( ) throws AdeException { dbPropertiesInitialized = false ; final Properties prop = new Properties ( ) ; try ( FileInputStream fis = new FileInputStream ( propertiesFileName ) ) { prop . load ( fis ) ; dbURL = prop . getProperty ( DATABASE_URL_PARAM ) ; dbDriver = prop . getProperty ( DATABASE_DRIVER_PARAM ) ; dbUserName = prop . getProperty ( DATABASE_USER_PARAM ) ; dbUserPassword = prop . getProperty ( DATABASE_PASSWORD_PARAM ) ; if ( dbURL != null ) { dbPropertiesInitialized = true ; dbURL = dbURL . trim ( ) ; dbName = parseDBName ( ) ; } if ( dbDriver != null ) { dbDriver = dbDriver . trim ( ) ; } else { dbPropertiesInitialized = false ; } if ( dbUserName != null ) { dbUserName = dbUserName . trim ( ) ; } if ( dbUserPassword != null ) { dbUserPassword = dbUserPassword . trim ( ) ; } } catch ( FileNotFoundException e ) { throw new AdeExtUsageException ( "Properties file " + propertiesFileName + " not found." , e ) ; } catch ( IOException e ) { throw new AdeExtUsageException ( "Problem in reading properties file " + propertiesFileName + "." , e ) ; } catch ( Exception e ) { throw new AdeExtUsageException ( "Problem in processing properties file " + propertiesFileName + "." , e ) ; } }
initializes the db configuration properties and back - up directory name .
