public BackupInspector(File backupDir) throws IOException {
  this.backupDir=backupDir;
  if (!backupDir.exists()) {
    throw new IOException("Backup directory " + backupDir.getAbsolutePath() + " does not exist.");
  }
  File restoreFile=getRestoreFile(backupDir);
  if (!restoreFile.exists()) {
    throw new IOException("Restore file " + restoreFile.getName() + " does not exist.");
  }
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new FileReader(restoreFile));
    parseRestoreFile(reader);
  }
  finally {
    if (null != reader) {
      reader.close();
    }
  }
}

public BackupInspector ( File backupDir ) throws IOException { this . backupDir = backupDir ; if ( ! backupDir . exists ( ) ) { throw new IOException ( "Backup directory " + backupDir . getAbsolutePath ( ) + " does not exist." ) ; } File restoreFile = getRestoreFile ( backupDir ) ; if ( ! restoreFile . exists ( ) ) { throw new IOException ( "Restore file " + restoreFile . getName ( ) + " does not exist." ) ; } BufferedReader reader = null ; try { reader = new BufferedReader ( new FileReader ( restoreFile ) ) ; parseRestoreFile ( reader ) ; } finally { if ( null != reader ) { reader . close ( ) ; } } }
creates a new backupinspector .
