Package org.apache.commons.vfs2.provider
Class CompositeFileProvider
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.provider.AbstractVfsContainer
org.apache.commons.vfs2.provider.AbstractFileProvider
org.apache.commons.vfs2.provider.CompositeFileProvider
- All Implemented Interfaces:
Closeable
,AutoCloseable
,FileProvider
,VfsComponent
- Direct Known Subclasses:
Tbz2FileProvider
,TgzFileProvider
Description.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindFile
(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.protected abstract String[]
The schemes known.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvider
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContainer
addComponent, removeComponent
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, init, setContext, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.vfs2.provider.FileProvider
getCapabilities
-
Constructor Details
-
CompositeFileProvider
public CompositeFileProvider()Constructs a new instance.
-
-
Method Details
-
findFile
public FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException Locates a file object, by absolute URI.- Parameters:
baseFile
- The base FileObject.uri
- The file to find.fileSystemOptions
- The options for the FileSystem.- Returns:
- A FileObject for the located file.
- Throws:
FileSystemException
- if an error occurs.
-
getSchemes
The schemes known.- Returns:
- Array of supported schemes.
-