|
||||||||||
| 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.JarEntryContents
public class JarEntryContents
A nested jar contents implementation used to represent a jar within a jar.
| Field Summary |
|---|
| Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
cachedLastModified, log |
| Method Summary | |
|---|---|
void |
addChild(VirtualFileHandler child)
Add a child to an entry |
void |
close()
Close the resources |
VirtualFileHandler |
createChildHandler(String name)
Create a virtual file context |
boolean |
exists()
TODO: removing the entry/jar that resulted in this needs to be detected. |
protected VirtualFileHandler |
findChildHandler(String name)
Find the 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 |
initNestedJar()
|
boolean |
isHidden()
Whether it is hidden |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. whether it can contain other files |
InputStream |
openStream()
Access the file contents. |
String |
toString()
|
URI |
toURI()
Get the VF URI (file://root/org/jboss/X.java) |
| Methods inherited from class org.jboss.virtual.plugins.context.jar.AbstractJarHandler |
|---|
fromURL, getEntry, getJar, getURL, handleJarFile |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractURLHandler |
|---|
getURL, toURL |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, checkParentExists, decrement, doClose, equals, getChildPathName, getChildVfsUrl, getName, getParent, getPathName, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toVfsUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected void initCacheLastModified()
initCacheLastModified in class AbstractURLHandlerpublic void addChild(VirtualFileHandler child)
addChild in interface HierarchyVirtualFileHandlerchild - the child
public boolean exists()
throws IOException
exists in interface VirtualFileHandlerexists in class AbstractURLHandlerIOException - - thrown on failure to detect existence.URLConnection.getLastModified(),
org.jboss.test.virtual.test.URLExistsUnitTestCase
public boolean isHidden()
throws IOException
VirtualFileHandler
isHidden in interface VirtualFileHandlerisHidden in class AbstractURLHandlerIOException - 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 findChildHandler(String name)
throws IOException
name - the path name
null is it doesn't exist
IOException - for any errorpublic long getLastModified()
VirtualFileHandler
getLastModified in interface VirtualFileHandlergetLastModified in class AbstractURLHandlerpublic long getSize()
VirtualFileHandler
getSize in interface VirtualFileHandlergetSize in class AbstractURLHandlerpublic boolean isLeaf()
VirtualFileHandler
isLeaf in interface VirtualFileHandlerisLeaf in class AbstractJarHandler
public InputStream openStream()
throws IOException
VirtualFileHandler
openStream in interface VirtualFileHandleropenStream in class AbstractURLHandlerIOException - for any problem accessing the virtual file systempublic void close()
VirtualFileHandler
close in interface VirtualFileHandlerclose in class AbstractVirtualFileHandler
public URI toURI()
throws URISyntaxException
VirtualFileHandler
toURI in interface VirtualFileHandlertoURI in class AbstractURLHandlerURISyntaxException - for an error parsing the URIpublic String toString()
toString in class AbstractVirtualFileHandler
protected void initNestedJar()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||