Package com.microej.kf.util.control.fs
Class DeleteFile
- java.lang.Object
-
- com.microej.kf.util.control.fs.AbstractFile
-
- com.microej.kf.util.control.fs.DeleteFile
-
public class DeleteFile extends AbstractFile
Action performed when a file is deleted.
-
-
Field Summary
-
Fields inherited from class com.microej.kf.util.control.fs.AbstractFile
file
-
-
Constructor Summary
Constructors Constructor Description DeleteFile(java.io.File file)Creates a delete file action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNbBytes()Returns the size of the file to delete.voidonEnd(boolean endWithSuccess)Called when the execution of the action is finished.voidonStart()Called when the execution of the action is about to start.-
Methods inherited from class com.microej.kf.util.control.fs.AbstractFile
getFile
-
-
-
-
Method Detail
-
getNbBytes
public long getNbBytes()
Returns the size of the file to delete.- Returns:
- the size of the file to delete.
-
onStart
public void onStart() throws java.lang.SecurityExceptionCalled when the execution of the action is about to start. This hook is used to check if the action is allowed to be performed.- Throws:
java.lang.SecurityException- if the action is not allowed to be performed.
-
onEnd
public void onEnd(boolean endWithSuccess)
Called when the execution of the action is finished. This hook is used to update the current resources state of the module that performs the action.- Parameters:
endWithSuccess- true if the execution of the action was ended with success; false otherwise.
-
-