public class DeleteFile extends AbstractFile
file| Constructor and Description |
|---|
DeleteFile(File file)
Creates a delete file action.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getNbBytes()
Returns the size of the file to delete.
|
void |
onEnd(boolean endWithSuccess)
Called when the execution of the action is finished.
|
void |
onStart()
Called when the execution of the action is about to start.
|
getFilepublic DeleteFile(File file)
file - the file to delete.public long getNbBytes()
public void onEnd(boolean endWithSuccess)
endWithSuccess - true if the execution of the action was ended with success; false otherwise.public void onStart()
throws SecurityException
SecurityException - if the action is not allowed to be performed.