org.apache.commons.vfs.provider.temp
Class TemporaryFileProvider
java.lang.Object
org.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.provider.AbstractVfsContainer
org.apache.commons.vfs.provider.AbstractFileProvider
org.apache.commons.vfs.provider.temp.TemporaryFileProvider
- All Implemented Interfaces:
- java.lang.Comparable, FileProvider, VfsComponent
public class TemporaryFileProvider
- extends AbstractFileProvider
- implements FileProvider, java.lang.Comparable
A provider for temporary files.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
Method Summary |
int |
compareTo(java.lang.Object o)
|
FileObject |
findFile(FileObject baseFile,
java.lang.String uri,
FileSystemOptions properties)
Locates a file object, by absolute URI. |
java.util.Collection |
getCapabilities()
Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was
instanciated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporaryFileProvider
public TemporaryFileProvider(java.io.File rootFile)
TemporaryFileProvider
public TemporaryFileProvider()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
findFile
public FileObject findFile(FileObject baseFile,
java.lang.String uri,
FileSystemOptions properties)
throws FileSystemException
- Locates a file object, by absolute URI.
- Specified by:
findFile
in interface FileProvider
- 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.
- Throws:
FileSystemException
getCapabilities
public java.util.Collection getCapabilities()
- Description copied from interface:
FileProvider
- Get the filesystem capabilities.
These are the same as on the filesystem, but available before the first filesystem was
instanciated.
- Specified by:
getCapabilities
in interface FileProvider