public interface FileOperationProvider
Modifier and Type | Field and Description |
---|---|
static FileOperationProvider[] |
EMPTY_ARRAY
Empty array.
|
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)
Get implementation for a given FileObject and FileOperation interface.
|
static final FileOperationProvider[] EMPTY_ARRAY
void collectOperations(Collection<Class<? extends FileOperation>> operationsList, FileObject file) throws FileSystemException
operationsList
- the list of available operations for the specified 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 cannot 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–2020 The Apache Software Foundation. All rights reserved.