|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.file.FileDeleteStrategy
org.apache.wicket.util.file.FolderDeleteStrategy
public class FolderDeleteStrategy
A FileDeleteStrategy that can delete folders.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.util.file.FileDeleteStrategy |
|---|
NORMAL |
| Constructor Summary | |
|---|---|
protected |
FolderDeleteStrategy()
Construct. |
| Method Summary | |
|---|---|
void |
delete(java.io.File folder)
Deletes the file object, which may be a file or a directory. |
boolean |
deleteQuietly(java.io.File folder)
Deletes the file object, which may be a file or a directory. |
| Methods inherited from class org.apache.wicket.util.file.FileDeleteStrategy |
|---|
doDelete, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FolderDeleteStrategy()
name - | Method Detail |
|---|
public boolean deleteQuietly(java.io.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 true
public void delete(java.io.File folder)
throws java.io.IOException
FileDeleteStrategy
Subclass writers should override FileDeleteStrategy.doDelete(File), not this method.
delete in class FileDeleteStrategyfolder - the file to delete, not null
java.io.IOException - if an error occurs during file deletion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||