|
||||||||||
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.vfs.AssembledDirectoryHandler
public class AssembledDirectoryHandler
The assembled directory handler.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log, vfsUrl |
Constructor Summary | |
---|---|
AssembledDirectoryHandler(AssembledContext context,
AssembledDirectoryHandler parent,
java.lang.String name)
|
Method Summary | |
---|---|
VirtualFileHandler |
addChild(VirtualFileHandler handler)
|
VirtualFileHandler |
createChildHandler(java.lang.String name)
Create a virtual file context |
boolean |
exists()
Tests whether the underlying implementation file still exists. |
VirtualFileHandler |
findChild(java.lang.String path)
Find a child |
VirtualFileHandler |
getChild(java.lang.String name)
|
java.util.List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
VirtualFile |
getVirtualFile()
Get the virtual file wrapper |
boolean |
isHidden()
Whether it is hidden |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. |
java.io.InputStream |
openStream()
Access the file contents. |
java.net.URI |
toURI()
Get the VF URI (file://root/org/jboss/X.java) |
java.net.URL |
toURL()
Get the VF URL (file://root/org/jboss/X.java) |
Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
checkClosed, close, decrement, doClose, equals, getName, getParent, getPathName, getVFSContext, hasBeenModified, hashCode, increment, setPathName, simpleFindChild, structuredFindChild, toString, toVfsUrl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssembledDirectoryHandler(AssembledContext context, AssembledDirectoryHandler parent, java.lang.String name) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public VirtualFileHandler addChild(VirtualFileHandler handler)
public VirtualFileHandler getChild(java.lang.String name)
public java.net.URI toURI() throws java.net.URISyntaxException
VirtualFileHandler
toURI
in interface VirtualFileHandler
java.net.URISyntaxException
- for an error parsing the URIpublic long getLastModified() throws java.io.IOException
VirtualFileHandler
getLastModified
in interface VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic long getSize() throws java.io.IOException
VirtualFileHandler
getSize
in interface VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean exists() throws java.io.IOException
VirtualFileHandler
exists
in interface VirtualFileHandler
java.io.IOException
- - thrown on failure to detect existence.public boolean isLeaf() throws java.io.IOException
VirtualFileHandler
isLeaf
in interface VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean isHidden() throws java.io.IOException
VirtualFileHandler
isHidden
in interface VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic java.io.InputStream openStream() throws java.io.IOException
VirtualFileHandler
openStream
in interface VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
VirtualFileHandler
getChildren
in interface VirtualFileHandler
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file systempublic VirtualFileHandler createChildHandler(java.lang.String name) throws java.io.IOException
StructuredVirtualFileHandler
createChildHandler
in interface StructuredVirtualFileHandler
name
- the name
java.io.IOException
- for any error accessing the virtual file systempublic VirtualFileHandler findChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
findChild
in interface VirtualFileHandler
path
- the path
java.io.IOException
- for an error accessing the file system (or the child doesn't exist)public VirtualFile getVirtualFile()
VirtualFileHandler
getVirtualFile
in interface VirtualFileHandler
getVirtualFile
in class AbstractVirtualFileHandler
public java.net.URL toURL() throws java.net.MalformedURLException, java.net.URISyntaxException
VirtualFileHandler
toURL
in interface VirtualFileHandler
toURL
in class AbstractVirtualFileHandler
java.net.MalformedURLException
- for any error
java.net.URISyntaxException
- for an error parsing the URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |