|
||||||||||
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,
JarFile parentJar,
ZipEntry entry,
URL url,
String entryName)
Create a new NestedJarHandler. |
Method Summary | |
---|---|
boolean |
delete(int gracePeriod)
Delete the file represented by this handler. |
VirtualFileHandler |
getChild(String path)
Get a child |
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. |
InputStream |
openStream()
Access the file contents. |
boolean |
removeChild(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, 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, JarFile parentJar, ZipEntry entry, URL url, String entryName) throws IOException
context
- the contextparent
- the parentparentJar
- the parent jar fileentry
- the jar entryurl
- the urlentryName
- the entry name
IOException
- for an error accessing the file system
IllegalArgumentException
- for a null context, url or vfsPathMethod Detail |
---|
protected void initCacheLastModified()
initCacheLastModified
in class AbstractURLHandler
public long getLastModified() throws IOException
VirtualFileHandler
getLastModified
in interface VirtualFileHandler
getLastModified
in class AbstractURLHandler
IOException
- for any problem accessing the virtual file systempublic long getSize() throws IOException
VirtualFileHandler
getSize
in interface VirtualFileHandler
getSize
in class AbstractURLHandler
IOException
- for any problem accessing the virtual file systempublic boolean isArchive() throws IOException
VirtualFileHandler
isArchive
in interface VirtualFileHandler
isArchive
in class AbstractVirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic boolean isNested() throws IOException
VirtualFileHandler
IOException
- for any errorpublic InputStream openStream() throws IOException
VirtualFileHandler
openStream
in interface VirtualFileHandler
openStream
in class AbstractURLHandler
IOException
- for any problem accessing the virtual file systempublic VirtualFileHandler getChild(String path) throws IOException
VirtualFileHandler
path
- the path
null
if not found
IOException
- for an error accessing the file systempublic boolean removeChild(String name) throws IOException
VirtualFileHandler
name
- child name
IOException
- if an error occurspublic List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws IOException
VirtualFileHandler
ignoreErrors
- whether to ignore errors
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 |