/** * Deletes the file. * * @throws IOException If and I/O error occurs. */ public synchronized void delete() throws IOException { try { if (avlBlockFile != null) { avlBlockFile.delete(); } } finally { avlBlockFile = null; } }
if (blockFiles[i] != null) { if (deleteFiles) { blockFiles[i].delete(); } else { blockFiles[i].close();