| 1 | |
package org.webslinger.commons.vfs; |
| 2 | |
|
| 3 | |
import java.util.Collection; |
| 4 | |
|
| 5 | |
import org.apache.commons.vfs.FileSystemException; |
| 6 | |
import org.apache.commons.vfs.operations.FileOperation; |
| 7 | |
|
| 8 | |
import org.webslinger.commons.vfs.operations.RealFileOperationProvider; |
| 9 | |
|
| 10 | 2 | public class FilteringFileOperationProvider extends RealFileOperationProvider<FilteringFileObject> { |
| 11 | |
public FilteringFileOperationProvider() { |
| 12 | 94 | super(FilteringFileObject.class); |
| 13 | 94 | } |
| 14 | |
|
| 15 | |
public void collectRealOperations(Collection operationsList, FilteringFileObject file) throws FileSystemException { |
| 16 | 1 | collectOperationsWorker(operationsList, file.getRealFile()); |
| 17 | 1 | } |
| 18 | |
|
| 19 | |
public FileOperation getRealOperation(FilteringFileObject file, Class operationClass) throws FileSystemException { |
| 20 | 1 | return getOperationWorker(file.getRealFile(), operationClass); |
| 21 | |
} |
| 22 | |
} |