org.jboss.virtual.plugins.context.file
Class FileSystemContext

java.lang.Object
  extended by org.jboss.virtual.plugins.context.AbstractVFSContext
      extended by org.jboss.virtual.plugins.context.file.FileSystemContext
All Implemented Interfaces:
VFSContext

public class FileSystemContext
extends AbstractVFSContext

FileSystemContext.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Field Summary
 
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVFSContext
log
 
Constructor Summary
FileSystemContext(File file)
          Create a new FileSystemContext.
FileSystemContext(URI rootURI)
          Create a new FileSystemContext.
FileSystemContext(URL rootURL)
          Create a new FileSystemContext.
 
Method Summary
 VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent, File file)
          Create a new virtual file handler
 VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent, File file, URI uri)
          Create a new virtual file handler
protected  void finalize()
           
 VirtualFileHandler getRoot()
          Return the root virtual file
 
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVFSContext
addOption, equals, getChild, getChildren, getOptions, getRootURI, getVFS, hashCode, toString, visit, visit
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemContext

public FileSystemContext(URL rootURL)
                  throws IOException,
                         URISyntaxException
Create a new FileSystemContext.

Parameters:
rootURL - the root url
Throws:
IOException - for an error accessing the file system
URISyntaxException - for an error parsing the uri

FileSystemContext

public FileSystemContext(URI rootURI)
                  throws IOException,
                         URISyntaxException
Create a new FileSystemContext.

Parameters:
rootURI - the root uri
Throws:
IOException - for an error accessing the file system
URISyntaxException

FileSystemContext

public FileSystemContext(File file)
                  throws IOException,
                         URISyntaxException
Create a new FileSystemContext.

Parameters:
file - the root file
Throws:
IOException - for an error accessing the file system
IllegalArgumentException - for a null file
URISyntaxException - for an error parsing the uri
Method Detail

getRoot

public VirtualFileHandler getRoot()
                           throws IOException
Description copied from interface: VFSContext
Return the root virtual file

Returns:
the root
Throws:
IOException - for any problem accessing the VFS

createVirtualFileHandler

public VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent,
                                                   File file)
                                            throws IOException
Create a new virtual file handler

Parameters:
parent - the parent
file - the file
Returns:
the handler
Throws:
IOException - for any error accessing the file system
IllegalArgumentException - for a null file

createVirtualFileHandler

public VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent,
                                                   File file,
                                                   URI uri)
                                            throws IOException
Create a new virtual file handler

Parameters:
parent - the parent
file - the file
uri - the uri
Returns:
the handler
Throws:
IOException - for any error accessing the file system
IllegalArgumentException - for a null file

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2008 JBoss, A division of Red Hat, Inc. All Rights Reserved.