|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractVfsContainer
org.apache.commons.vfs.provider.AbstractFileProvider
A partial FileProvider
implementation. Takes care of managing the
file systems created by the provider.
Constructor Summary | |
AbstractFileProvider()
|
Method Summary | |
protected void |
addFileSystem(Comparable key,
FileSystem fs)
Adds a file system to those cached by this provider. |
void |
close()
Closes the file systems created by this provider. |
void |
closeFileSystem(FileSystem filesystem)
|
FileObject |
createFileSystem(String scheme,
FileObject file,
FileSystemOptions properties)
Creates a layered file system. |
protected FileSystem |
findFileSystem(Comparable key,
FileSystemOptions fileSystemProps)
Locates a cached file system |
void |
freeUnusedResources()
|
FileSystemConfigBuilder |
getConfigBuilder()
Gets the configbuilder useable to collect the needed fileSystemOptions. |
protected FileNameParser |
getFileNameParser()
|
FileName |
parseUri(FileName base,
String uri)
Parses an absolute URI. |
protected void |
setFileNameParser(FileNameParser parser)
|
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsContainer |
addComponent, removeComponent |
Methods inherited from class org.apache.commons.vfs.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.vfs.provider.FileProvider |
findFile, getCapabilities |
Constructor Detail |
public AbstractFileProvider()
Method Detail |
protected FileNameParser getFileNameParser()
protected void setFileNameParser(FileNameParser parser)
public void close()
close
in interface VfsComponent
close
in class AbstractVfsContainer
public FileObject createFileSystem(String scheme, FileObject file, FileSystemOptions properties) throws FileSystemException
createFileSystem
in interface FileProvider
scheme
- The URI scheme for the layered file system.file
- The file to build the file system on.properties
-
FileSystemException
protected void addFileSystem(Comparable key, FileSystem fs) throws FileSystemException
VfsComponent
, in which case it is initialised.
FileSystemException
protected FileSystem findFileSystem(Comparable key, FileSystemOptions fileSystemProps)
public FileSystemConfigBuilder getConfigBuilder()
FileProvider
getConfigBuilder
in interface FileProvider
public void freeUnusedResources()
public void closeFileSystem(FileSystem filesystem)
public FileName parseUri(FileName base, String uri) throws FileSystemException
parseUri
in interface FileProvider
base
- The base file - if null the uri
needs to be absoluteuri
- The URI to parse.
FileSystemException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |