static class FileDeleteStrategy.ForceFileDeleteStrategy extends FileDeleteStrategy
FileDeleteStrategy.ForceFileDeleteStrategy
FORCE, NORMAL
Constructor | Description |
---|---|
ForceFileDeleteStrategy() |
Default Constructor
|
Modifier and Type | Method | 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 deletionCopyright (c) 2002-2017 Apache Software Foundation