static class FileDeleteStrategy.ForceFileDeleteStrategy extends FileDeleteStrategy
FileDeleteStrategy.ForceFileDeleteStrategyFORCE, NORMAL| Constructor and Description |
|---|
ForceFileDeleteStrategy()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doDelete(File fileToDelete)
Deletes the file object.
|
delete, deleteQuietly, toStringprotected boolean doDelete(File fileToDelete) throws IOException
This implementation uses FileUtils.forceDelete()
if the file exists.
doDelete in class FileDeleteStrategyfileToDelete - the file to delete, not nulltrueNullPointerException - if the file is nullIOException - if an error occurs during file deletion