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

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs2.provider.AbstractFileSystem
          extended by com.github.junrar.vfs2.provider.rar.RARFileSystem
All Implemented Interfaces:
org.apache.commons.vfs2.FileSystem, org.apache.commons.vfs2.provider.VfsComponent

public class RARFileSystem
extends org.apache.commons.vfs2.provider.AbstractFileSystem
implements org.apache.commons.vfs2.FileSystem

A read-only file system for RAR files.

Author:
Rogiel

Constructor Summary
RARFileSystem(org.apache.commons.vfs2.provider.AbstractFileName rootName, org.apache.commons.vfs2.FileObject parentLayer, org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
           
 
Method Summary
protected  void addCapabilities(Collection<org.apache.commons.vfs2.Capability> caps)
          Returns the capabilities of this file system.
protected  org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
          Creates a file object.
protected  RARFileObject createRARFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, FileHeader header)
           
protected  void doCloseCommunicationLink()
           
 void init()
           
protected  void notifyAllStreamsClosed()
          will be called after all file-objects closed their streams.
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, isOpen, isReleaseable, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractVfsComponent
getContext, getLogger, 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.FileSystem
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
 

Constructor Detail

RARFileSystem

public RARFileSystem(org.apache.commons.vfs2.provider.AbstractFileName rootName,
                     org.apache.commons.vfs2.FileObject parentLayer,
                     org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
              throws org.apache.commons.vfs2.FileSystemException
Throws:
org.apache.commons.vfs2.FileSystemException
Method Detail

init

public void init()
          throws org.apache.commons.vfs2.FileSystemException
Specified by:
init in interface org.apache.commons.vfs2.provider.VfsComponent
Overrides:
init in class org.apache.commons.vfs2.provider.AbstractFileSystem
Throws:
org.apache.commons.vfs2.FileSystemException

createRARFileObject

protected RARFileObject createRARFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
                                            FileHeader header)
                                     throws org.apache.commons.vfs2.FileSystemException
Throws:
org.apache.commons.vfs2.FileSystemException

doCloseCommunicationLink

protected void doCloseCommunicationLink()
Overrides:
doCloseCommunicationLink in class org.apache.commons.vfs2.provider.AbstractFileSystem

addCapabilities

protected void addCapabilities(Collection<org.apache.commons.vfs2.Capability> caps)
Returns the capabilities of this file system.

Specified by:
addCapabilities in class org.apache.commons.vfs2.provider.AbstractFileSystem

createFile

protected org.apache.commons.vfs2.FileObject createFile(org.apache.commons.vfs2.provider.AbstractFileName name)
                                                 throws org.apache.commons.vfs2.FileSystemException
Creates a file object.

Specified by:
createFile in class org.apache.commons.vfs2.provider.AbstractFileSystem
Throws:
org.apache.commons.vfs2.FileSystemException

notifyAllStreamsClosed

protected void notifyAllStreamsClosed()
will be called after all file-objects closed their streams.

Overrides:
notifyAllStreamsClosed in class org.apache.commons.vfs2.provider.AbstractFileSystem


Copyright © 2012. All Rights Reserved.