org.apache.commons.vfs2.provider.temp
Class TemporaryFileProvider
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.temp.TemporaryFileProvider
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>, FileProvider, VfsComponent
public class TemporaryFileProvider
- extends AbstractFileProvider
- implements FileProvider, java.lang.Comparable<java.lang.Object>
A provider for temporary files.
- Author:
- Commons VFS team
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<java.lang.Object>
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 FileObject.uri
- The URI of the file to be located.properties
- FileSystemOptions to use to locate or create the file.
- Returns:
- The FileObject.
- Throws:
FileSystemException
- if an error occurs.
getCapabilities
public java.util.Collection<Capability> 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
- Returns:
- a Collection of the file systems Capabilities.