Class DefaultFileOperations
java.lang.Object
org.apache.commons.vfs2.operations.DefaultFileOperations
- All Implemented Interfaces:
- FileOperations
The default implementations for 
FileOperations.- Since:
- 0.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetOperation(Class<? extends FileOperation> operationClass) Gets the file operation for the given class.Class<? extends FileOperation>[]Gets all operations associated with this instance.booleanhasOperation(Class<? extends FileOperation> operationClass) Tests @return whether an operationoperationClassis available.
- 
Constructor Details- 
DefaultFileOperationsConstructs a new instance.- Parameters:
- file- The file.
 
 
- 
- 
Method Details- 
getOperationpublic FileOperation getOperation(Class<? extends FileOperation> operationClass) throws FileSystemException Description copied from interface:FileOperationsGets the file operation for the given class.- Specified by:
- getOperationin interface- FileOperations
- Parameters:
- operationClass- The Class that performs the operation.
- Returns:
- The FileOperation.
- Throws:
- FileSystemException- if an error occurs.
 
- 
getOperationsDescription copied from interface:FileOperationsGets all operations associated with this instance.- Specified by:
- getOperationsin interface- FileOperations
- Returns:
- The operation classes.
- Throws:
- FileSystemException- If an error occurs.
 
- 
hasOperationpublic boolean hasOperation(Class<? extends FileOperation> operationClass) throws FileSystemException Description copied from interface:FileOperationsTests @return whether an operationoperationClassis available.- Specified by:
- hasOperationin interface- FileOperations
- 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.
 
 
-