Interface FileOperations
- All Known Implementing Classes:
DefaultFileOperations
public interface FileOperations
FileOperations interface provides API to work with operations.
- Since:
- 0.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetOperation
(Class<? extends FileOperation> operationClass) Gets the file operation for the given class.Class<? extends FileOperation>[]
Gets all operations associated with this instance.boolean
hasOperation
(Class<? extends FileOperation> operationClass) Tests @return whether an operationoperationClass
is available.
-
Method Details
-
getOperation
FileOperation getOperation(Class<? extends FileOperation> operationClass) throws FileSystemException Gets the file operation for the given class.- Parameters:
operationClass
- the operation Class.- Returns:
- an operation implementing the given
operationClass
. - Throws:
FileSystemException
- if an error occurs.
-
getOperations
Gets all operations associated with this instance.- Returns:
- all operations associated with this instance.
- Throws:
FileSystemException
- if an error occurs.
-
hasOperation
Tests @return whether an operationoperationClass
is available.- Parameters:
operationClass
- the operation Class.- Returns:
- whether an operation
operationClass
is available. - Throws:
FileSystemException
- if an error occurs.
-