com.github.junrar.vfs2.provider.rar
Class RARFileProvider

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.AbstractLayeredFileProvider
                  extended by com.github.junrar.vfs2.provider.rar.RARFileProvider
All Implemented Interfaces:
org.apache.commons.vfs2.provider.FileProvider, org.apache.commons.vfs2.provider.VfsComponent

public class RARFileProvider
extends org.apache.commons.vfs2.provider.AbstractLayeredFileProvider
implements org.apache.commons.vfs2.provider.FileProvider

A file system provider for RAR files. Provides read-only file systems.

Author:
Rogiel

Field Summary
protected static Collection<org.apache.commons.vfs2.Capability> capabilities
          The list of capabilities this provider supports
 
Constructor Summary
RARFileProvider()
           
 
Method Summary
protected  org.apache.commons.vfs2.FileSystem doCreateFileSystem(String scheme, org.apache.commons.vfs2.FileObject file, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
          Creates a layered file system.
 Collection<org.apache.commons.vfs2.Capability> getCapabilities()
           
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractLayeredFileProvider
createFileSystem, findFile
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileProvider
addFileSystem, close, closeFileSystem, 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, findFile, getConfigBuilder, parseUri
 

Field Detail

capabilities

protected static final Collection<org.apache.commons.vfs2.Capability> capabilities
The list of capabilities this provider supports

Constructor Detail

RARFileProvider

public RARFileProvider()
Method Detail

doCreateFileSystem

protected org.apache.commons.vfs2.FileSystem doCreateFileSystem(String scheme,
                                                                org.apache.commons.vfs2.FileObject file,
                                                                org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
                                                         throws org.apache.commons.vfs2.FileSystemException
Creates a layered file system. This method is called if the file system is not cached.

Specified by:
doCreateFileSystem in class org.apache.commons.vfs2.provider.AbstractLayeredFileProvider
Parameters:
scheme - The URI scheme.
file - The file to create the file system on top of.
Returns:
The file system.
Throws:
org.apache.commons.vfs2.FileSystemException

getCapabilities

public Collection<org.apache.commons.vfs2.Capability> getCapabilities()
Specified by:
getCapabilities in interface org.apache.commons.vfs2.provider.FileProvider


Copyright © 2012. All Rights Reserved.