1 16 package org.apache.commons.vfs; 17 18 import org.apache.commons.logging.Log; 19 20 import java.io.File ; 21 import java.net.URLStreamHandlerFactory ; 22 import java.util.Collection ; 23 24 67 public interface FileSystemManager 68 { 69 72 FileObject getBaseFile() throws FileSystemException; 73 74 82 FileObject resolveFile(String name) 83 throws FileSystemException; 84 85 94 FileObject resolveFile(String name, FileSystemOptions fileSystemOptions) 95 throws FileSystemException; 96 97 111 FileObject resolveFile(FileObject baseFile, String name) 112 throws FileSystemException; 113 114 124 FileObject resolveFile(File baseFile, String name) 125 throws FileSystemException; 126 127 136 FileName resolveName(final FileName root, final String name) throws FileSystemException; 137 138 148 FileName resolveName(final FileName root, String name, NameScope scope) 149 throws FileSystemException; 150 151 159 FileObject toFileObject(File file) 160 throws FileSystemException; 161 162 172 FileObject createFileSystem(String provider, FileObject file) 173 throws FileSystemException; 174 175 183 FileObject createFileSystem(FileObject file) 184 throws FileSystemException; 185 186 193 FileObject createVirtualFileSystem(String rootUri) 194 throws FileSystemException; 195 196 203 FileObject createVirtualFileSystem(FileObject rootFile) 204 throws FileSystemException; 205 206 210 URLStreamHandlerFactory getURLStreamHandlerFactory(); 211 212 217 boolean canCreateFileSystem(FileObject file) throws FileSystemException; 218 219 222 FilesCache getFilesCache(); 223 224 227 FileContentInfoFactory getFileContentInfoFactory(); 228 229 232 public String [] getSchemes(); 233 234 239 public Collection getProviderCapabilities(final String scheme) throws FileSystemException; 240 241 244 public void setLogger(final Log log); 245 246 251 public FileSystemConfigBuilder getFileSystemConfigBuilder(final String scheme) throws FileSystemException; 252 253 258 public FileName resolveURI(String uri) throws FileSystemException; 259 } 260 | Popular Tags |