| 1 | |
package org.webslinger.commons.vfs; |
| 2 | |
|
| 3 | |
import java.io.File; |
| 4 | |
|
| 5 | |
import org.apache.commons.vfs.FileListener; |
| 6 | |
import org.apache.commons.vfs.FileName; |
| 7 | |
import org.apache.commons.vfs.FileSelector; |
| 8 | |
import org.apache.commons.vfs.FileSystem; |
| 9 | |
import org.apache.commons.vfs.FileSystemException; |
| 10 | |
|
| 11 | |
public interface GenerifiedFileSystem<N extends FileName, F extends GenerifiedFileObject<N, F, S>, S extends GenerifiedFileSystem<N, F, S>> extends FileSystem { |
| 12 | |
F getRoot() throws FileSystemException; |
| 13 | |
N getRootName(); |
| 14 | |
F resolveFile(N name) throws FileSystemException; |
| 15 | |
F resolveFile(String path) throws FileSystemException; |
| 16 | |
void addListener(F file, FileListener listener) throws FileSystemException; |
| 17 | |
void removeListener(F file, FileListener listener) throws FileSystemException; |
| 18 | |
File replicateFile(F file, FileSelector selector) throws FileSystemException; |
| 19 | |
} |