public class DefaultFileOperations extends Object implements FileOperations
Constructor and Description |
---|
DefaultFileOperations(FileObject file) |
Modifier and Type | Method and Description |
---|---|
FileOperation |
getOperation(Class<? extends FileOperation> operationClass) |
Class<? extends FileOperation>[] |
getOperations() |
boolean |
hasOperation(Class<? extends FileOperation> operationClass) |
public DefaultFileOperations(FileObject file)
file
- The file.public Class<? extends FileOperation>[] getOperations() throws FileSystemException
getOperations
in interface FileOperations
FileSystemException
- If an error occurs.public FileOperation getOperation(Class<? extends FileOperation> operationClass) throws FileSystemException
getOperation
in interface FileOperations
operationClass
- The Class that performs the operation.FileSystemException
- if an error occurs.public boolean hasOperation(Class<? extends FileOperation> operationClass) throws FileSystemException
hasOperation
in interface FileOperations
operationClass
- the operation's class.FileSystemException
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.