|
||||||||||
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, vfsUrl |
Constructor Summary | |
---|---|
NoCopyNestedJarHandler(VFSContext context,
VirtualFileHandler parent,
java.util.jar.JarFile parentJar,
java.util.jar.JarEntry entry,
java.net.URL url)
Create a new NestedJarHandler. |
Method Summary | |
---|---|
VirtualFileHandler |
findChild(java.lang.String path)
Find a child |
java.util.List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
protected java.util.jar.JarEntry |
getEntry()
Get the entry |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
java.io.InputStream |
openStream()
Access the file contents. |
Methods inherited from class org.jboss.virtual.plugins.context.jar.AbstractJarHandler |
---|
buildParents, createChildHandler, createVirtualFileHandler, doClose, fromURL, getEntryName, getJar, getURL, initJarFile, isLeaf |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
---|
getURL, initCacheLastModified, isHidden, toURI, toURL |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, close, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hasBeenModified, hashCode, simpleFindChild, structuredFindChild, toString, 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.jar.JarEntry entry, java.net.URL url) throws java.io.IOException
context
- the contextparent
- the parentparentJar
- the parent jar fileentry
- the jar entryurl
- the url
java.io.IOException
- for an error accessing the file system
java.lang.IllegalArgumentException
- for a null context, url or vfsPathMethod Detail |
---|
protected java.util.jar.JarEntry getEntry()
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 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 findChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
findChild
in interface VirtualFileHandler
findChild
in class AbstractJarHandler
path
- the path
java.io.IOException
- for an error accessing the file system (or the child doesn't exist)public java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
VirtualFileHandler
getChildren
in interface VirtualFileHandler
getChildren
in class AbstractJarHandler
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file system
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |