|
||||||||||
| 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 vfsPath| Method Detail |
|---|
protected void initCacheLastModified()
initCacheLastModified in class AbstractURLHandler
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 isArchive()
throws IOException
VirtualFileHandler
isArchive in interface VirtualFileHandlerisArchive in class AbstractVirtualFileHandlerIOException - for any problem accessing the virtual file system
public boolean isNested()
throws IOException
VirtualFileHandler
IOException - for any error
public InputStream openStream()
throws IOException
VirtualFileHandler
openStream in interface VirtualFileHandleropenStream in class AbstractURLHandlerIOException - for any problem accessing the virtual file system
public VirtualFileHandler getChild(String path)
throws IOException
VirtualFileHandler
path - the path
null if not found
IOException - for an error accessing the file system
public boolean removeChild(String name)
throws IOException
VirtualFileHandler
name - child name
IOException - if an error occurs
public 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)
AbstractVirtualFileHandlerVirtualFileHandler.removeChild(String) of the parent
delete in interface VirtualFileHandlerdelete in class AbstractVirtualFileHandlergracePeriod - max time to wait for any locks
protected void internalReplaceChild(VirtualFileHandler original,
VirtualFileHandler replacement)
AbstractVirtualFileHandler
internalReplaceChild in class AbstractVirtualFileHandleroriginal - the originalreplacement - the replacement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||