Class DefaultFileOperations
- java.lang.Object
-
- org.apache.commons.vfs2.operations.DefaultFileOperations
-
- All Implemented Interfaces:
FileOperations
public class DefaultFileOperations extends java.lang.Object implements FileOperations
- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description DefaultFileOperations(FileObject file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOperation
getOperation(java.lang.Class<? extends FileOperation> operationClass)
java.lang.Class<? extends FileOperation>[]
getOperations()
boolean
hasOperation(java.lang.Class<? extends FileOperation> operationClass)
-
-
-
Constructor Detail
-
DefaultFileOperations
public DefaultFileOperations(FileObject file)
- Parameters:
file
- The file.
-
-
Method Detail
-
getOperations
public java.lang.Class<? extends FileOperation>[] getOperations() throws FileSystemException
- Specified by:
getOperations
in interfaceFileOperations
- Returns:
- The operation classes.
- Throws:
FileSystemException
- If an error occurs.
-
getOperation
public FileOperation getOperation(java.lang.Class<? extends FileOperation> operationClass) throws FileSystemException
- Specified by:
getOperation
in interfaceFileOperations
- Parameters:
operationClass
- The Class that performs the operation.- Returns:
- The FileOperation.
- Throws:
FileSystemException
- if an error occurs.
-
hasOperation
public boolean hasOperation(java.lang.Class<? extends FileOperation> operationClass) throws FileSystemException
- Specified by:
hasOperation
in interfaceFileOperations
- Parameters:
operationClass
- the operation's class.- Returns:
- true if the operation of specified class is supported for current FileObject and false otherwise.
- Throws:
FileSystemException
- if an error occurs.
-
-