Interface FileOperationProvider

    • Method Detail

      • collectOperations

        void collectOperations​(java.util.Collection<java.lang.Class<? extends FileOperation>> operationsList,
                               FileObject file)
                        throws FileSystemException
        Gather available operations for the specified FileObject and put them into specified operationsList.
        Parameters:
        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.
        Throws:
        FileSystemException - if list of operations cannot be retrieved.
      • getOperation

        FileOperation getOperation​(FileObject file,
                                   java.lang.Class<? extends FileOperation> operationClass)
                            throws FileSystemException
        Get implementation for a given FileObject and FileOperation interface.
        Parameters:
        file - the FileObject for which we need a operation.
        operationClass - the Class which instance we are needed.
        Returns:
        the required operation instance.
        Throws:
        FileSystemException - if operation cannot be retrieved.