| 1 | |
package org.webslinger.commons.vfs.tests; |
| 2 | |
|
| 3 | |
import java.io.InputStream; |
| 4 | |
import java.io.OutputStream; |
| 5 | |
|
| 6 | |
import org.apache.commons.vfs.FileChangeEvent; |
| 7 | |
import org.apache.commons.vfs.FileListener; |
| 8 | |
import org.apache.commons.vfs.FileObject; |
| 9 | |
import org.apache.commons.vfs.NameScope; |
| 10 | |
|
| 11 | |
import org.webslinger.io.Monitor; |
| 12 | |
import org.webslinger.io.tests.Root; |
| 13 | |
|
| 14 | 0 | public final class FileObjectRoot<F extends FileObject> extends AbstractFileObjectRoot<FileObjectRoot<F>, F> { |
| 15 | |
public FileObjectRoot(F file) { |
| 16 | 0 | super(file); |
| 17 | 0 | } |
| 18 | |
|
| 19 | |
protected FileObjectRoot<F> create(F file) throws Exception { |
| 20 | 0 | return new FileObjectRoot<F>(file); |
| 21 | |
} |
| 22 | |
|
| 23 | |
public Listener createListener() throws Exception { |
| 24 | 0 | return new FileObjectRootListener(); |
| 25 | |
} |
| 26 | |
|
| 27 | 0 | protected final class FileObjectRootListener extends AbstractFileObjectRootListener { |
| 28 | |
} |
| 29 | |
} |