|
||||||||||
| 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 |
| Constructor Summary | |
|---|---|
AssembledDirectoryHandler(AssembledContext context,
AssembledDirectoryHandler parent,
String name)
|
|
| Method Summary | |
|---|---|
VirtualFileHandler |
addChild(VirtualFileHandler handler)
|
VirtualFileHandler |
createChildHandler(String name)
Create a virtual file context |
boolean |
exists()
Tests whether the underlying implementation file still exists. |
VirtualFileHandler |
findChild(String name)
|
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 |
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. whether it can contain other files |
InputStream |
openStream()
Access the file contents. |
URI |
toURI()
Get the VF URI (file://root/org/jboss/X.java) |
URL |
toURL()
Get the VF URL (file://root/org/jboss/X.java) |
| Methods inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
checkClosed, checkParentExists, close, decrement, doClose, equals, getChildPathName, getChildVfsUrl, getName, getParent, getPathName, getVFSContext, getVfsUrl, hasBeenModified, hashCode, increment, setPathName, setVfsUrl, 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,
String name)
throws IOException
IOException| Method Detail |
|---|
public VirtualFileHandler addChild(VirtualFileHandler handler)
public VirtualFileHandler findChild(String name)
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
public URI toURI()
throws URISyntaxException
VirtualFileHandler
toURI in interface VirtualFileHandlerURISyntaxException - for an error parsing the URI
public long getLastModified()
throws IOException
VirtualFileHandler
getLastModified in interface VirtualFileHandlerIOException - for any problem accessing the virtual file system
public long getSize()
throws IOException
VirtualFileHandler
getSize in interface VirtualFileHandlerIOException - for any problem accessing the virtual file system
public boolean exists()
throws IOException
VirtualFileHandler
exists in interface VirtualFileHandlerIOException - - thrown on failure to detect existence.
public boolean isLeaf()
throws IOException
VirtualFileHandler
isLeaf in interface VirtualFileHandlerIOException - for any problem accessing the virtual file system
public boolean isHidden()
throws IOException
VirtualFileHandler
isHidden in interface VirtualFileHandlerIOException - for any problem accessing the virtual file system
public InputStream openStream()
throws IOException
VirtualFileHandler
openStream in interface VirtualFileHandlerIOException - 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 systempublic VirtualFile getVirtualFile()
VirtualFileHandler
getVirtualFile in interface VirtualFileHandlergetVirtualFile in class AbstractVirtualFileHandler
public URL toURL()
throws MalformedURLException,
URISyntaxException
VirtualFileHandler
toURL in interface VirtualFileHandlertoURL in class AbstractVirtualFileHandlerMalformedURLException - for any error
URISyntaxException - for an error parsing the URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||