|
||||||||||
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
org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler<java.lang.Object>
org.jboss.virtual.plugins.context.jar.NestedJarHandler
public class NestedJarHandler
Nested Jar Handler.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log |
Constructor Summary | |
---|---|
protected |
NestedJarHandler(VFSContext context,
VirtualFileHandler parent,
java.util.jar.JarFile parentJar,
java.util.zip.ZipEntry entry,
java.net.URL original,
java.io.File temp,
java.lang.String entryName)
Create a new NestedJarHandler. |
Method Summary | |
---|---|
void |
cleanup()
Cleanup resources. |
static NestedJarHandler |
create(VFSContext context,
VirtualFileHandler parent,
java.util.jar.JarFile parentJar,
java.util.zip.ZipEntry entry,
java.net.URL url,
java.lang.String entryName)
|
boolean |
delete(int gracePeriod)
Delete the file represented by this handler. |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
boolean |
isNested()
Are we nested in some archive. |
java.io.InputStream |
openStream()
Overriden to return the raw tmp jar file stream |
boolean |
removeChild(java.lang.String name)
Remove a child |
Methods inherited from class org.jboss.virtual.plugins.context.jar.AbstractStructuredJarHandler |
---|
buildParents, createChildHandler, createSynthenticParent, createVirtualFileHandler, extraWrapperInfo, getChild, getChildren, initJarFile, initJarFile, internalReplaceChild, isArchive |
Methods inherited from class org.jboss.virtual.plugins.context.jar.AbstractJarHandler |
---|
fromURL, getEntry, getJar, getURL, handleJarFile, isLeaf |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
exists, getURL, initCacheLastModified, isHidden, openConnection, openConnection, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, checkParentExists, close, decrement, doClose, equals, getCertificates, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getRealURL, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, 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 |
Constructor Detail |
---|
protected NestedJarHandler(VFSContext context, VirtualFileHandler parent, java.util.jar.JarFile parentJar, java.util.zip.ZipEntry entry, java.net.URL original, java.io.File temp, java.lang.String entryName) throws java.io.IOException
context
- the contextparent
- the parentparentJar
- the parent jar fileentry
- the jar entryoriginal
- the original urltemp
- the temporary fileentryName
- the entry name
java.io.IOException
- for an error accessing the file system
java.lang.IllegalArgumentException
- for a null context, url or vfsPathMethod Detail |
---|
public static NestedJarHandler create(VFSContext context, VirtualFileHandler parent, java.util.jar.JarFile parentJar, java.util.zip.ZipEntry entry, java.net.URL url, java.lang.String entryName) throws java.io.IOException
java.io.IOException
public long getLastModified() throws java.io.IOException
VirtualFileHandler
getLastModified
in interface VirtualFileHandler
getLastModified
in class AbstractURLHandler
java.io.IOException
- for any problem accessing the virtual file systempublic long getSize() throws java.io.IOException
VirtualFileHandler
getSize
in interface VirtualFileHandler
getSize
in class AbstractURLHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean isNested() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any errorpublic java.io.InputStream openStream() throws java.io.IOException
openStream
in interface VirtualFileHandler
openStream
in class AbstractURLHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean removeChild(java.lang.String name) throws java.io.IOException
VirtualFileHandler
name
- child name
java.io.IOException
- if an error occurspublic void cleanup()
VirtualFileHandler
cleanup
in interface VirtualFileHandler
cleanup
in class AbstractVirtualFileHandler
public boolean delete(int gracePeriod) throws java.io.IOException
AbstractVirtualFileHandler
VirtualFileHandler.removeChild(String)
of the parent
delete
in interface VirtualFileHandler
delete
in class AbstractVirtualFileHandler
gracePeriod
- max time to wait for any locks
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |