|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An operation that deletes an item. If the item is a directory and the directory contains one or more items, they should also be deleted.
Method Summary | |
int |
getDeletedFilesCount()
Returns the number of files that were deleted by this operation. |
void |
run()
Runs this operation. |
Methods inherited from interface au.com.prunge.jgenfile.ItemOperation |
getItem |
Methods inherited from interface au.com.prunge.jgenfile.Operation |
abort, addOperationHints, getLastRunException, getOperationHint, getOperationHints, hasRun, setOperationHint, setOperationHints |
Method Detail |
public int getDeletedFilesCount() throws OperationNotFinishedException, JGenFileException
This number is only useful if the item that was deleted was a directory and contained other items.
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.
JGenFileException
- if another error occurs.public void run() throws JGenFileException, PartialDeleteException
run
in interface Operation
PartialDeleteException
- if this item is a directory,
and only some of the items
inside the directory could
be deleted.
JGenFileException
- if another error occurs.Operation.abort()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |