org.inria.ns.reflex.modules.io.res
Class ResourceFileProvider

java.lang.Object
  extended by org.apache.commons.vfs.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs.provider.AbstractVfsContainer
          extended by org.apache.commons.vfs.provider.AbstractFileProvider
              extended by org.inria.ns.reflex.modules.io.res.ResourceFileProvider
All Implemented Interfaces:
FileProvider, VfsComponent

public class ResourceFileProvider
extends AbstractFileProvider

A provider for resources found in the classpath.

Author:
Philippe Poulard

Constructor Summary
ResourceFileProvider()
           
 
Method Summary
 void closeFileSystem(FileSystem filesystem)
           
 FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions)
          Locates a file object, by absolute URI.
 Collection getCapabilities()
           
 FileSystemConfigBuilder getConfigBuilder()
           
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileProvider
close, createFileSystem, freeUnusedResources, parseUri
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
init, setContext, setLogger
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFileProvider

public ResourceFileProvider()
Method Detail

findFile

public FileObject findFile(FileObject baseFile,
                           String uri,
                           FileSystemOptions fileSystemOptions)
                    throws FileSystemException
Locates a file object, by absolute URI.

Throws:
FileSystemException

getConfigBuilder

public FileSystemConfigBuilder getConfigBuilder()
Specified by:
getConfigBuilder in interface FileProvider
Overrides:
getConfigBuilder in class AbstractFileProvider

closeFileSystem

public void closeFileSystem(FileSystem filesystem)
Overrides:
closeFileSystem in class AbstractFileProvider

getCapabilities

public Collection getCapabilities()