AbstractFileOperationProvider
public interface FileOperationProvider
Modifier and Type | Method | Description |
---|---|---|
void |
collectOperations(java.util.Collection operationsList,
FileObject file) |
Gather available operations for the specified FileObject and put them into
specified operationsList.
|
FileOperation |
getOperation(FileObject file,
java.lang.Class operationClass) |
void collectOperations(java.util.Collection operationsList, FileObject file) throws FileSystemException
operationsList
- the list of available operations for the specivied FileObject.
The operationList contains classes of available operations, e.g.
Class objects.file
- the FileObject for which we want to get the list of available
operations.FileSystemException
- if list of operations cannto be retrieved.FileOperation getOperation(FileObject file, java.lang.Class operationClass) throws FileSystemException
file
- the FileObject for which we need a operation.operationClass
- the Class which instance we are needed.FileSystemException
- if operation cannot be retrieved.