|
||||||||||
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.NoCopyNestedJarHandler
public class NoCopyNestedJarHandler
Nested Jar Handler.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log |
Constructor Summary | |
---|---|
NoCopyNestedJarHandler(VFSContext context,
VirtualFileHandler parent,
java.util.jar.JarFile parentJar,
java.util.zip.ZipEntry entry,
java.net.URL url,
java.lang.String entryName)
Create a new NestedJarHandler. |
Method Summary | |
---|---|
boolean |
delete(int gracePeriod)
Delete the file represented by this handler. |
VirtualFileHandler |
getChild(java.lang.String path)
Get a child |
java.util.List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
protected void |
initCacheLastModified()
|
protected void |
internalReplaceChild(VirtualFileHandler original,
VirtualFileHandler replacement)
Replace original child with unpacked replacement. |
boolean |
isArchive()
Does this represent an archive. |
boolean |
isNested()
Are we nested in some archive. |
java.io.InputStream |
openStream()
Access the file contents. |
boolean |
removeChild(java.lang.String name)
Remove a child |
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, isHidden, openConnection, openConnection, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, checkParentExists, cleanup, 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 |
---|
public NoCopyNestedJarHandler(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
context
- the contextparent
- the parentparentJar
- the parent jar fileentry
- the jar entryurl
- the urlentryName
- the entry name
java.io.IOException
- for an error accessing the file system
java.lang.IllegalArgumentException
- for a null context, url or vfsPathMethod Detail |
---|
protected void initCacheLastModified()
initCacheLastModified
in class AbstractURLHandler
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 isArchive() throws java.io.IOException
VirtualFileHandler
isArchive
in interface VirtualFileHandler
isArchive
in class AbstractVirtualFileHandler
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
VirtualFileHandler
openStream
in interface VirtualFileHandler
openStream
in class AbstractURLHandler
java.io.IOException
- for any problem accessing the virtual file systempublic VirtualFileHandler getChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
path
- the path
null
if not found
java.io.IOException
- for an error accessing the file systempublic boolean removeChild(java.lang.String name) throws java.io.IOException
VirtualFileHandler
name
- child name
java.io.IOException
- if an error occurspublic java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
VirtualFileHandler
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file systempublic boolean delete(int gracePeriod)
AbstractVirtualFileHandler
VirtualFileHandler.removeChild(String)
of the parent
delete
in interface VirtualFileHandler
delete
in class AbstractVirtualFileHandler
gracePeriod
- max time to wait for any locks
protected void internalReplaceChild(VirtualFileHandler original, VirtualFileHandler replacement)
AbstractVirtualFileHandler
internalReplaceChild
in class AbstractVirtualFileHandler
original
- the originalreplacement
- the replacement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |