public class WriteFile extends AbstractFile
file| Constructor and Description |
|---|
WriteFile(File file,
int nbWriteBytes)
Creates a write file action.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNbBytes()
Gets the number of bytes to write.
|
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 WriteFile(File file, int nbWriteBytes)
file - the file to write.nbWriteBytes - the number of bytes to write.public int 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.