public class FileDeleteHelper extends Object
| Constructor and Description |
|---|
FileDeleteHelper() |
FileDeleteHelper(int numRetries,
int secondsBetweenRetries) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteWithRetries(File file)
Retries delete the configured times
|
int |
getNumRetries() |
int |
getSecondsBetweenRetries() |
void |
setNumRetries(int numRetries) |
void |
setSecondsBetweenRetries(int secondsBetweenRetries) |
public FileDeleteHelper()
public FileDeleteHelper(int numRetries,
int secondsBetweenRetries)
public int getNumRetries()
public void setNumRetries(int numRetries)
public int getSecondsBetweenRetries()
public void setSecondsBetweenRetries(int secondsBetweenRetries)
public void deleteWithRetries(File file) throws IOException
file - file to deleteIOException - exception if can not be deletedCopyright © 2025. All rights reserved.