|
||||||||||
| 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 VirtualFileHandlerjava.net.URISyntaxException - for an error parsing the URI
public long getLastModified()
throws java.io.IOException
VirtualFileHandler
getLastModified in interface VirtualFileHandlerjava.io.IOException - for any problem accessing the virtual file system
public long getSize()
throws java.io.IOException
VirtualFileHandler
getSize in interface VirtualFileHandlerjava.io.IOException - for any problem accessing the virtual file system
public boolean exists()
throws java.io.IOException
VirtualFileHandler
exists in interface VirtualFileHandlerjava.io.IOException - - thrown on failure to detect existence.
public boolean isLeaf()
throws java.io.IOException
VirtualFileHandler
isLeaf in interface VirtualFileHandlerjava.io.IOException - for any problem accessing the virtual file system
public boolean isHidden()
throws java.io.IOException
VirtualFileHandler
isHidden in interface VirtualFileHandlerjava.io.IOException - for any problem accessing the virtual file system
public java.io.InputStream openStream()
throws java.io.IOException
VirtualFileHandler
openStream in interface VirtualFileHandlerjava.io.IOException - for any problem accessing the virtual file system
public java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors)
throws java.io.IOException
VirtualFileHandler
getChildren in interface VirtualFileHandlerignoreErrors - whether to ignore errors
java.io.IOException - for an error accessing the file system
public VirtualFileHandler createChildHandler(java.lang.String name)
throws java.io.IOException
StructuredVirtualFileHandler
createChildHandler in interface StructuredVirtualFileHandlername - the name
java.io.IOException - for any error accessing the virtual file system
public VirtualFileHandler findChild(java.lang.String path)
throws java.io.IOException
VirtualFileHandler
findChild in interface VirtualFileHandlerpath - 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 VirtualFileHandlergetVirtualFile in class AbstractVirtualFileHandler
public java.net.URL toURL()
throws java.net.MalformedURLException,
java.net.URISyntaxException
VirtualFileHandler
toURL in interface VirtualFileHandlertoURL in class AbstractVirtualFileHandlerjava.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 | |||||||||