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(URL rootURL)
Create a new JarContext. |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVFSContext |
addOption, equals, getChild, getChildren, getOptions, getRootURI, getVFS, hashCode, toString, visit, visit |
JarContext
public JarContext(URL rootURL)
throws IOException,
URISyntaxException
- Create a new JarContext.
- Parameters:
rootURL - the root url
- Throws:
IOException - for an error accessing the file system
URISyntaxException - for an error parsing the URI
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
protected VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent,
URL url)
throws IOException
- Create a new virtual file handler
- Parameters:
parent - the parenturl - the url
- Returns:
- the handler
- Throws:
IOException - for any error accessing the file system
IllegalArgumentException - for a null entry or url
entryPath
public static String entryPath(String entryName)
extractJarName
public static String extractJarName(String urlStr)
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.