|
||||||||||
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,
java.net.URL url,
java.util.jar.JarFile jar,
java.util.zip.ZipEntry entry,
java.lang.String name)
Create a new JarHandler. |
Method Summary | |
---|---|
static java.util.jar.JarFile |
fromURL(java.net.URL url)
Convert a URL into a JarFIle |
java.util.zip.ZipEntry |
getEntry()
Get the entry. |
java.util.jar.JarFile |
getJar()
Get the jar. |
protected java.net.URL |
getURL(VirtualFileHandler parent,
java.lang.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. |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
exists, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openConnection, openConnection, openStream, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, checkParentExists, cleanup, close, decrement, delete, doClose, equals, getCertificates, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getRealURL, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, internalReplaceChild, isArchive, isTemporary, replaceChild, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal, 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, isNested, removeChild |
Constructor Detail |
---|
protected AbstractJarHandler(VFSContext context, VirtualFileHandler parent, java.net.URL url, java.util.jar.JarFile jar, java.util.zip.ZipEntry entry, java.lang.String name) throws java.io.IOException
context
- the contextparent
- the parenturl
- the urljar
- the jarentry
- the entryname
- the name
java.io.IOException
- for an error accessing the file system
java.lang.IllegalArgumentException
- for a null context, url or vfsPathMethod Detail |
---|
public java.util.jar.JarFile getJar()
public java.util.zip.ZipEntry getEntry()
protected java.net.URL getURL(VirtualFileHandler parent, java.lang.String path, boolean isDirEntry) throws java.net.MalformedURLException
parent
- - the parent handlerpath
- - the simple path to the entry without any trailing '/'isDirEntry
- - whether this is a directory entry
java.net.MalformedURLException
- if illegal URL formpublic boolean isLeaf()
VirtualFileHandler
public static java.util.jar.JarFile fromURL(java.net.URL url) throws java.io.IOException
url
- the url to convert
java.io.IOException
- for any IO errorprotected void handleJarFile() throws java.io.IOException
java.io.IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |