1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.vfs2.provider.url;
18
19 import java.util.Collection;
20
21 import org.apache.commons.vfs2.Capability;
22 import org.apache.commons.vfs2.FileName;
23 import org.apache.commons.vfs2.FileObject;
24 import org.apache.commons.vfs2.FileSystemOptions;
25 import org.apache.commons.vfs2.provider.AbstractFileName;
26 import org.apache.commons.vfs2.provider.AbstractFileSystem;
27
28
29
30
31 public class UrlFileSystem extends AbstractFileSystem {
32
33 protected UrlFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions) {
34 super(rootName, null, fileSystemOptions);
35 }
36
37
38
39
40 @Override
41 protected FileObject createFile(final AbstractFileName name) {
42 return new UrlFileObject(this, name);
43 }
44
45
46
47
48 @Override
49 protected void addCapabilities(final Collection<Capability> caps) {
50 caps.addAll(UrlFileProvider.capabilities);
51 }
52 }