|
||||||||||
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 vfsPathMethod Detail |
---|
protected void initJarFile() throws IOException
IOException
- for any error reading the jar file
IllegalArgumentException
- for a null jarFileprotected void initJarFile(Enumeration<org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T>> enumeration) throws IOException
enumeration
- jar entry enumeration
IOException
- for any errorprotected void extraWrapperInfo(org.jboss.virtual.plugins.context.jar.ZipEntryWrapper<T> wrapper) throws IOException
wrapper
- the zip entry wrapper
IOException
- for any errorprotected 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 errorprotected 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 VirtualFileHandler
isArchive
in class AbstractVirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws IOException
VirtualFileHandler
getChildren
in interface VirtualFileHandler
ignoreErrors
- whether to ignore errors
IOException
- for an error accessing the file systempublic VirtualFileHandler createChildHandler(String name) throws IOException
StructuredVirtualFileHandler
createChildHandler
in interface StructuredVirtualFileHandler
name
- the name
IOException
- for any error accessing the virtual file systempublic VirtualFileHandler getChild(String path) throws IOException
VirtualFileHandler
getChild
in interface VirtualFileHandler
path
- the path
null
if not found
IOException
- for an error accessing the file systemprotected 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 entryprotected 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 |