static class FileDeleteStrategy.ForceFileDeleteStrategy extends FileDeleteStrategy
FileDeleteStrategy.ForceFileDeleteStrategy
FORCE, NORMAL
Constructor and Description |
---|
ForceFileDeleteStrategy()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doDelete(java.io.File fileToDelete)
Deletes the file object.
|
delete, deleteQuietly, toString
protected boolean doDelete(java.io.File fileToDelete) throws java.io.IOException
This implementation uses FileUtils.forceDelete()
if the file exists.
doDelete
in class FileDeleteStrategy
fileToDelete
- the file to delete, not nulltrue
java.lang.NullPointerException
- if the file is nulljava.io.IOException
- if an error occurs during file deletion