org.apache.commons.vfs2.provider.temp
Class TemporaryFileProvider

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs2.provider.AbstractVfsContainer
          extended by org.apache.commons.vfs2.provider.AbstractFileProvider
              extended by org.apache.commons.vfs2.provider.temp.TemporaryFileProvider
All Implemented Interfaces:
Comparable<Object>, FileProvider, VfsComponent

public class TemporaryFileProvider
extends AbstractFileProvider
implements FileProvider, Comparable<Object>

A provider for temporary files.

Author:
Commons VFS team

Constructor Summary
TemporaryFileProvider()
           
TemporaryFileProvider(File rootFile)
           
 
Method Summary
 int compareTo(Object o)
           
 FileObject findFile(FileObject baseFile, String uri, FileSystemOptions properties)
          Locates a file object, by absolute URI.
 Collection<Capability> 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 org.apache.commons.vfs2.provider.AbstractFileProvider
addFileSystem, close, closeFileSystem, createFileSystem, findFileSystem, freeUnusedResources, getConfigBuilder, getFileNameParser, parseUri, setFileNameParser
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsContainer
addComponent, removeComponent
 
Methods inherited from class org.apache.commons.vfs2.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.vfs2.provider.FileProvider
createFileSystem, getConfigBuilder, parseUri
 

Constructor Detail

TemporaryFileProvider

public TemporaryFileProvider(File rootFile)

TemporaryFileProvider

public TemporaryFileProvider()
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable<Object>

findFile

public FileObject findFile(FileObject baseFile,
                           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 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.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.