1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.commons.vfs.provider.url;
18
19 import org.apache.commons.vfs.FileName;
20 import org.apache.commons.vfs.FileObject;
21 import org.apache.commons.vfs.FileSystem;
22 import org.apache.commons.vfs.FileSystemOptions;
23 import org.apache.commons.vfs.provider.AbstractFileSystem;
24
25 import java.util.Collection;
26
27 /***
28 * A File system backed by Java's URL API.
29 *
30 * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
31 * @version $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
32 */
33 public class UrlFileSystem
34 extends AbstractFileSystem
35 implements FileSystem
36 {
37 protected UrlFileSystem(final FileName rootName, final FileSystemOptions fileSystemOptions)
38 {
39 super(rootName, null, fileSystemOptions);
40 }
41
42 /***
43 * Creates a file object.
44 */
45 protected FileObject createFile(final FileName name)
46 {
47 return new UrlFileObject(this, name);
48 }
49
50 /***
51 * Returns the capabilities of this file system.
52 */
53 protected void addCapabilities(final Collection caps)
54 {
55 caps.addAll(UrlFileProvider.capabilities);
56 }
57 }