|
||||||||||
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. |
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, 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, 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 vfsPathMethod 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 errorprotected void handleJarFile() throws IOException
IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |