|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.virtual.plugins.context.AbstractVirtualFileHandler
org.jboss.virtual.plugins.context.AbstractURLHandler
org.jboss.virtual.plugins.context.jar.AbstractJarHandler
public abstract class AbstractJarHandler
AbstractJarHandler.
| Field Summary |
|---|
| Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
cachedLastModified, log |
| Constructor Summary | |
|---|---|
protected |
AbstractJarHandler(VFSContext context,
VirtualFileHandler parent,
URL url,
JarFile jar,
ZipEntry entry,
String name)
Create a new JarHandler. |
| Method Summary | |
|---|---|
static JarFile |
fromURL(URL url)
Convert a URL into a JarFIle |
ZipEntry |
getEntry()
Get the entry. |
JarFile |
getJar()
Get the jar. |
protected URL |
getURL(VirtualFileHandler parent,
String path,
boolean isDirEntry)
Create the URL for the entry represented by path. |
protected void |
handleJarFile()
Handle jar file after read. |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. whether it can contain other files |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
|---|
exists, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openStream, toURI, toURL |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, checkParentExists, close, decrement, doClose, equals, getChildPathName, getChildVfsUrl, getName, getParent, getPathName, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toString, toVfsUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.virtual.spi.VirtualFileHandler |
|---|
getChild, getChildren |
| Constructor Detail |
|---|
protected AbstractJarHandler(VFSContext context,
VirtualFileHandler parent,
URL url,
JarFile jar,
ZipEntry entry,
String name)
throws IOException
context - the contextparent - the parenturl - the urljar - the jarentry - the entryname - the name
IOException - for an error accessing the file system
IllegalArgumentException - for a null context, url or vfsPath| Method Detail |
|---|
public JarFile getJar()
public ZipEntry getEntry()
protected URL getURL(VirtualFileHandler parent,
String path,
boolean isDirEntry)
throws MalformedURLException
parent - - the parent handlerpath - - the simple path to the entry without any trailing '/'isDirEntry - - whether this is a directory entry
MalformedURLException - if illegal URL formpublic boolean isLeaf()
VirtualFileHandler
public static JarFile fromURL(URL url)
throws IOException
url - the url to convert
IOException - for any IO error
protected void handleJarFile()
throws IOException
IOException - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||