public class DefaultFileOperations extends java.lang.Object implements FileOperations
| Modifier and Type | Field and Description |
|---|---|
private FileObject |
fileObject |
private FileSystemManager |
fsmanager |
| Constructor and Description |
|---|
DefaultFileOperations(FileObject file) |
| Modifier and Type | Method and Description |
|---|---|
FileOperation |
getOperation(java.lang.Class<? extends FileOperation> operationClass) |
java.lang.Class<? extends FileOperation>[] |
getOperations() |
boolean |
hasOperation(java.lang.Class<? extends FileOperation> operationClass) |
private final FileSystemManager fsmanager
private final FileObject fileObject
public DefaultFileOperations(FileObject file)
file - The file.public java.lang.Class<? extends FileOperation>[] getOperations() throws FileSystemException
getOperations in interface FileOperationsFileSystemException - If an error occurs.public FileOperation getOperation(java.lang.Class<? extends FileOperation> operationClass) throws FileSystemException
getOperation in interface FileOperationsoperationClass - The Class that performs the operation.FileSystemException - if an error occurs.public boolean hasOperation(java.lang.Class<? extends FileOperation> operationClass) throws FileSystemException
hasOperation in interface FileOperationsoperationClass - the operation's class.FileSystemException - if an error occurs.