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:
- Closeable,- AutoCloseable,- Comparable<Object>,- FileProvider,- VfsComponent
A provider for temporary files.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance.TemporaryFileProvider(File rootFile) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionintfindFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) Locates a file object, by absolute URI.Gets the file system capabilities.Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvideraddFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParserMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContaineraddComponent, removeComponentMethods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponentgetContext, getLogger, init, setContext, setLogger
- 
Constructor Details- 
TemporaryFileProviderpublic TemporaryFileProvider()Constructs a new instance.
- 
TemporaryFileProviderConstructs a new instance.- Parameters:
- rootFile- The root file.
 
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<Object>
 
- 
findFilepublic FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions) throws FileSystemException Locates a file object, by absolute URI.- Specified by:
- findFilein interface- FileProvider
- Parameters:
- baseFile- The base FileObject.
- uri- The URI of the file to be located.
- fileSystemOptions- FileSystemOptions to use to locate or create the file.
- Returns:
- The FileObject.
- Throws:
- FileSystemException- if an error occurs.
 
- 
getCapabilitiesDescription copied from interface:FileProviderGets the file system capabilities.These are the same as on the file system, but available before the first file system was instantiated. - Specified by:
- getCapabilitiesin interface- FileProvider
- Returns:
- a Collection of the file systems Capabilities.
 
 
-