|
||||||||||
| 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<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,
JarFile parentJar,
ZipEntry entry,
URL original,
File temp,
String entryName)
Create a new NestedJarHandler. |
| Method Summary | |
|---|---|
void |
cleanup()
Cleanup resources. |
static NestedJarHandler |
create(VFSContext context,
VirtualFileHandler parent,
JarFile parentJar,
ZipEntry entry,
URL url,
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. |
InputStream |
openStream()
Overriden to return the raw tmp jar file stream |
boolean |
removeChild(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, 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,
JarFile parentJar,
ZipEntry entry,
URL original,
File temp,
String entryName)
throws IOException
context - the contextparent - the parentparentJar - the parent jar fileentry - the jar entryoriginal - the original urltemp - the temporary fileentryName - the entry name
IOException - for an error accessing the file system
IllegalArgumentException - for a null context, url or vfsPath| Method Detail |
|---|
public static NestedJarHandler create(VFSContext context,
VirtualFileHandler parent,
JarFile parentJar,
ZipEntry entry,
URL url,
String entryName)
throws IOException
IOException
public long getLastModified()
throws IOException
VirtualFileHandler
getLastModified in interface VirtualFileHandlergetLastModified in class AbstractURLHandlerIOException - for any problem accessing the virtual file system
public long getSize()
throws IOException
VirtualFileHandler
getSize in interface VirtualFileHandlergetSize in class AbstractURLHandlerIOException - for any problem accessing the virtual file system
public boolean isNested()
throws IOException
VirtualFileHandler
IOException - for any error
public InputStream openStream()
throws IOException
openStream in interface VirtualFileHandleropenStream in class AbstractURLHandlerIOException - for any problem accessing the virtual file system
public boolean removeChild(String name)
throws IOException
VirtualFileHandler
name - child name
IOException - if an error occurspublic void cleanup()
VirtualFileHandler
cleanup in interface VirtualFileHandlercleanup in class AbstractVirtualFileHandler
public boolean delete(int gracePeriod)
throws IOException
AbstractVirtualFileHandlerVirtualFileHandler.removeChild(String) of the parent
delete in interface VirtualFileHandlerdelete in class AbstractVirtualFileHandlergracePeriod - max time to wait for any locks
IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||