public class TemporaryFileProvider extends AbstractFileProvider implements java.lang.Comparable<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private java.io.File |
rootFile |
Constructor and Description |
---|
TemporaryFileProvider() |
TemporaryFileProvider(java.io.File rootFile) |
Modifier and Type | Method and Description |
---|---|
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<Capability> |
getCapabilities()
Gets the file system capabilities.
|
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
addComponent, removeComponent
getContext, getLogger, init, setContext, setLogger
public TemporaryFileProvider(java.io.File rootFile)
public TemporaryFileProvider()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public FileObject findFile(FileObject baseFile, java.lang.String uri, FileSystemOptions properties) throws FileSystemException
findFile
in interface FileProvider
baseFile
- The base FileObject.uri
- The URI of the file to be located.properties
- FileSystemOptions to use to locate or create the file.FileSystemException
- if an error occurs.public java.util.Collection<Capability> getCapabilities()
FileProvider
These are the same as on the file system, but available before the first file system was instanciated.
getCapabilities
in interface FileProvider