private void deleteCurrentFile(File fileToDelete) throws IOException {
  logger.info("Preparing to delete file {}",fileToDelete);
  if (!fileToDelete.exists()) {
    logger.warn("Unable to delete nonexistent file: {}",fileToDelete);
    return;
  }
  if (!fileToDelete.delete()) {
    throw new IOException("Unable to delete spool file: " + fileToDelete);
  }
  deleteMetaFile();
}

private void deleteCurrentFile ( File fileToDelete ) throws IOException { logger . info ( "Preparing to delete file {}" , fileToDelete ) ; if ( ! fileToDelete . exists ( ) ) { logger . warn ( "Unable to delete nonexistent file: {}" , fileToDelete ) ; return ; } if ( ! fileToDelete . delete ( ) ) { throw new IOException ( "Unable to delete spool file: " + fileToDelete ) ; } deleteMetaFile ( ) ; }
delete the given spooled file
