org.jboss.virtual.plugins.context.jar
Class JarContext
java.lang.Object
org.jboss.virtual.plugins.context.AbstractVFSContext
org.jboss.virtual.plugins.context.jar.JarContext
- All Implemented Interfaces:
- VFSContext
public class JarContext
- extends AbstractVFSContext
JarContext.
- Version:
- $Revision: 1.1 $
- Author:
- Scott.Stark@jboss.org, Adrian Brock
Constructor Summary |
JarContext(java.net.URL rootURL)
Create a new JarContext. |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
JarContext
public JarContext(java.net.URL rootURL)
throws java.io.IOException,
java.net.URISyntaxException
- Create a new JarContext.
- Parameters:
rootURL
- the root url
- Throws:
java.io.IOException
- for an error accessing the file system
java.net.URISyntaxException
- for an error parsing the URI
getRoot
public VirtualFileHandler getRoot()
throws java.io.IOException
- Description copied from interface:
VFSContext
- Return the root virtual file
- Returns:
- the root
- Throws:
java.io.IOException
- for any problem accessing the VFS
createVirtualFileHandler
public VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent,
java.net.URL url)
throws java.io.IOException
- Create a new virtual file handler
- Parameters:
parent
- the parenturl
- the url
- Returns:
- the handler
- Throws:
java.io.IOException
- for any error accessing the file system
java.lang.IllegalArgumentException
- for a null entry or url
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable