|
||||||||||
| 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<T>
T - exact extra wrapper typepublic abstract class AbstractStructuredJarHandler<T>
AbstractStructuredJarHandler.
| Field Summary |
|---|
| Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
cachedLastModified, log |
| Constructor Summary | |
|---|---|
protected |
AbstractStructuredJarHandler(VFSContext context,
VirtualFileHandler parent,
URL url,
JarFile jar,
ZipEntry entry,
String name)
Create a new JarHandler. |
| Method Summary | |
|---|---|
protected VirtualFileHandler |
buildParents(String parentName,
Map<String,VirtualFileHandler> parentMap,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
Create any missing parents. |
VirtualFileHandler |
createChildHandler(String name)
Create a virtual file context |
protected VirtualFileHandler |
createSynthenticParent(VirtualFileHandler parent,
String path,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
|
protected VirtualFileHandler |
createVirtualFileHandler(VirtualFileHandler parent,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper,
String entryName)
Create a new virtual file handler |
protected void |
extraWrapperInfo(org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
Handle additional information about wrapper. |
VirtualFileHandler |
getChild(String path)
Get a child |
List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
protected void |
initJarFile()
Initialize the jar file |
protected void |
initJarFile(Enumeration<org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T>> enumeration)
Initialise the jar file. |
protected void |
internalReplaceChild(VirtualFileHandler original,
VirtualFileHandler replacement)
Replace original child with unpacked replacement. |
boolean |
isArchive()
Does this represent an archive. |
| 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, getLastModified, getSize, getURL, initCacheLastModified, isHidden, openConnection, openConnection, openStream, toURI, toURL |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, checkParentExists, cleanup, close, decrement, delete, 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 |
| Methods inherited from interface org.jboss.virtual.spi.VirtualFileHandler |
|---|
isNested, removeChild |
| Constructor Detail |
|---|
protected AbstractStructuredJarHandler(VFSContext context,
VirtualFileHandler parent,
URL url,
JarFile jar,
ZipEntry entry,
String name)
throws IOException
context - the contextparent - the parenturl - the urljar - the jarentry - the entryname - the name
IOException - for an error accessing the file system
IllegalArgumentException - for a null context, url or vfsPath| Method Detail |
|---|
protected void initJarFile()
throws IOException
IOException - for any error reading the jar file
IllegalArgumentException - for a null jarFile
protected void initJarFile(Enumeration<org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T>> enumeration)
throws IOException
enumeration - jar entry enumeration
IOException - for any error
protected void extraWrapperInfo(org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
throws IOException
wrapper - the zip entry wrapper
IOException - for any error
protected VirtualFileHandler buildParents(String parentName,
Map<String,VirtualFileHandler> parentMap,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
throws IOException
parentName - full vfs path name of parentparentMap - initJarFile parentMapwrapper - ZipEntryWrapper missing a parent
IOException - for any IO error
protected VirtualFileHandler createSynthenticParent(VirtualFileHandler parent,
String path,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper)
throws IOException
IOException
public boolean isArchive()
throws IOException
VirtualFileHandler
isArchive in interface VirtualFileHandlerisArchive in class AbstractVirtualFileHandlerIOException - for any problem accessing the virtual file system
public List<VirtualFileHandler> getChildren(boolean ignoreErrors)
throws IOException
VirtualFileHandler
getChildren in interface VirtualFileHandlerignoreErrors - whether to ignore errors
IOException - for an error accessing the file system
public VirtualFileHandler createChildHandler(String name)
throws IOException
StructuredVirtualFileHandler
createChildHandler in interface StructuredVirtualFileHandlername - the name
IOException - for any error accessing the virtual file system
public VirtualFileHandler getChild(String path)
throws IOException
VirtualFileHandler
getChild in interface VirtualFileHandlerpath - the path
null if not found
IOException - for an error accessing the file system
protected VirtualFileHandler createVirtualFileHandler(VirtualFileHandler parent,
org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper,
String entryName)
throws IOException
parent - the parentwrapper - the entry wrapperentryName - - the entry name without any trailing '/'
IOException - for any error accessing the file system
IllegalArgumentException - for a null parent or entry
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 | |||||||||