Interface FileOperations
-
- All Known Implementing Classes:
DefaultFileOperations
public interface FileOperations
FileOperations interface provides API to work with operations.- Since:
- 0.1
- See Also:
on what an operation in the context of VFS is.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileOperation
getOperation(java.lang.Class<? extends FileOperation> operationClass)
Gets the file operation for the given class.java.lang.Class<? extends FileOperation>[]
getOperations()
Gets all operations associated with this instance.boolean
hasOperation(java.lang.Class<? extends FileOperation> operationClass)
Tests @return whether an operationoperationClass
is available.
-
-
-
Method Detail
-
getOperation
FileOperation getOperation(java.lang.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
java.lang.Class<? extends FileOperation>[] getOperations() throws FileSystemException
Gets all operations associated with this instance.- Returns:
- all operations associated with this instance.
- Throws:
FileSystemException
- if an error occurs.
-
hasOperation
boolean hasOperation(java.lang.Class<? extends FileOperation> operationClass) throws FileSystemException
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.
-
-