| 1 | |
package org.webslinger.commons.vfs.cow; |
| 2 | |
|
| 3 | |
import org.apache.commons.vfs.FileObject; |
| 4 | |
import org.apache.commons.vfs.FileSystem; |
| 5 | |
import org.apache.commons.vfs.FileSystemConfigBuilder; |
| 6 | |
import org.apache.commons.vfs.FileSystemException; |
| 7 | |
import org.apache.commons.vfs.FileSystemOptions; |
| 8 | |
import org.apache.commons.vfs.provider.LayeredFileName; |
| 9 | |
|
| 10 | |
import org.webslinger.commons.vfs.FilteringFileProvider; |
| 11 | |
|
| 12 | 47 | public class COWFileProvider extends FilteringFileProvider { |
| 13 | |
public FileSystemConfigBuilder getConfigBuilder() { |
| 14 | 0 | return COWConfigBuilder.getInstance(); |
| 15 | |
} |
| 16 | |
|
| 17 | |
protected FileSystem doCreateFileSystem(LayeredFileName name, FileObject file, FileSystemOptions properties) throws FileSystemException { |
| 18 | 6 | return new COWFileSystem(name, file, properties); |
| 19 | |
} |
| 20 | |
} |