org.apache.commons.vfs.operations
Class DefaultFileOperations

java.lang.Object
  extended by org.apache.commons.vfs.operations.DefaultFileOperations
All Implemented Interfaces:
FileOperations

public class DefaultFileOperations
extends java.lang.Object
implements FileOperations

Since:
0.1
Author:
Siarhei Baidun

Constructor Summary
DefaultFileOperations(FileObject file)
           
 
Method Summary
 FileOperation getOperation(java.lang.Class operationClass)
           
 java.lang.Class[] getOperations()
           
 boolean hasOperation(java.lang.Class operationClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFileOperations

public DefaultFileOperations(FileObject file)
Parameters:
file - The file.
Method Detail

getOperations

public java.lang.Class[] getOperations()
                                throws FileSystemException
Specified by:
getOperations in interface FileOperations
Returns:
The operation classes.
Throws:
FileSystemException - If an error occurs.

getOperation

public FileOperation getOperation(java.lang.Class operationClass)
                           throws FileSystemException
Specified by:
getOperation in interface FileOperations
Parameters:
operationClass - The Class that performs the operation.
Returns:
The FileOperation.
Throws:
FileSystemException - if an error occurs.

hasOperation

public boolean hasOperation(java.lang.Class operationClass)
                     throws FileSystemException
Specified by:
hasOperation in 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.


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.