public interface FileOperationProvider
Modifier and Type | Method and Description |
---|---|
void |
collectOperations(Collection<Class<? extends FileOperation>> operationsList,
FileObject file)
Gather available operations for the specified FileObject and put them into
specified operationsList.
|
FileOperation |
getOperation(FileObject file,
Class<? extends FileOperation> operationClass) |
void collectOperations(Collection<Class<? extends FileOperation>> 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, Class<? extends FileOperation> 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.Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.