Package org.apache.commons.vfs.provider
Interface FileProvider
-
- All Known Subinterfaces:
LocalFileProvider
- All Known Implementing Classes:
AbstractFileProvider,AbstractLayeredFileProvider,AbstractOriginatingFileProvider,Bzip2FileProvider,CompositeFileProvider,CompressedFileFileProvider,DefaultLocalFileProvider,FtpFileProvider,GzipFileProvider,HttpFileProvider,HttpsFileProvider,JarFileProvider,RamFileProvider,ResourceFileProvider,SftpFileProvider,TarFileProvider,Tbz2FileProvider,TemporaryFileProvider,TgzFileProvider,UrlFileProvider,ZipFileProvider
public interface FileProviderA file provider. Each file provider is responsible for handling files for a particular URI scheme.A file provider may also implement
VfsComponent.- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileObjectcreateFileSystem(java.lang.String scheme, FileObject file, FileSystemOptions fileSystemOptions)Creates a layered file system.FileObjectfindFile(FileObject baseFile, java.lang.String uri, FileSystemOptions fileSystemOptions)Locates a file object, by absolute URI.java.util.CollectiongetCapabilities()Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was instanciated.FileSystemConfigBuildergetConfigBuilder()Gets the configbuilder useable to collect the needed fileSystemOptions.FileNameparseUri(FileName root, java.lang.String uri)
-
-
-
Method Detail
-
findFile
FileObject findFile(FileObject baseFile, java.lang.String uri, FileSystemOptions fileSystemOptions) throws FileSystemException
Locates a file object, by absolute URI.- Parameters:
baseFile- The base file to use for resolving the individual parts of a compound URI.uri- The absolute URI of the file to find.fileSystemOptions-- Throws:
FileSystemException
-
createFileSystem
FileObject createFileSystem(java.lang.String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
Creates a layered file system.- Parameters:
scheme- The URI scheme for the layered file system.file- The file to build the file system on.fileSystemOptions-- Throws:
FileSystemException
-
getConfigBuilder
FileSystemConfigBuilder getConfigBuilder()
Gets the configbuilder useable to collect the needed fileSystemOptions.
-
getCapabilities
java.util.Collection getCapabilities()
Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was instanciated.
-
parseUri
FileName parseUri(FileName root, java.lang.String uri) throws FileSystemException
- Throws:
FileSystemException
-
-