public class FolderDeleteStrategy extends FileDeleteStrategy
FileDeleteStrategy that can delete folders.NORMAL| Modifier | Constructor and Description |
|---|---|
protected |
FolderDeleteStrategy()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(File folder)
Deletes the file object, which may be a file or a directory.
|
boolean |
deleteQuietly(File folder)
Deletes the file object, which may be a file or a directory.
|
doDelete, toStringprotected FolderDeleteStrategy()
name - public boolean deleteQuietly(File folder)
FileDeleteStrategyIOExceptions
are caught and false returned instead. If the file does not exist or is null, true is
returned.
Subclass writers should override FileDeleteStrategy.doDelete(File), not this method.
deleteQuietly in class FileDeleteStrategyfolder - the file to delete, null returns truepublic void delete(File folder) throws IOException
FileDeleteStrategy
Subclass writers should override FileDeleteStrategy.doDelete(File), not this method.
delete in class FileDeleteStrategyfolder - the file to delete, not nullIOException - if an error occurs during file deletionCopyright © 2006-2012 Apache Software Foundation. All Rights Reserved.