|
||||||||||
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.AssembledFileHandler
public class AssembledFileHandler
The assembled file handler.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log, vfsUrl |
Constructor Summary | |
---|---|
AssembledFileHandler(AssembledContext context,
AssembledDirectoryHandler parent,
java.lang.String name,
VirtualFileHandler delegate)
|
Method Summary | |
---|---|
boolean |
exists()
Tests whether the underlying implementation file still exists. |
VirtualFileHandler |
findChild(java.lang.String path)
Find a child |
java.util.List<VirtualFileHandler> |
getChildren(boolean ignoreErrors)
Get the children |
long |
getLastModified()
When the file was last modified |
long |
getSize()
Get the size |
boolean |
hasBeenModified()
Returns true if the file has been modified since this method was last called Last modified time is initialized at handler instantiation. |
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 |
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 |
---|
close, decrement, doClose, equals, getName, getParent, getPathName, getVFSContext, getVirtualFile, hashCode, checkClosed, increment, setPathName, simpleFindChild, structuredFindChild, toString, toVfsUrl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssembledFileHandler(AssembledContext context, AssembledDirectoryHandler parent, java.lang.String name, VirtualFileHandler delegate) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
VirtualFileHandler
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file systempublic VirtualFileHandler findChild(java.lang.String path) throws java.io.IOException
VirtualFileHandler
path
- the path
java.io.IOException
- for an error accessing the file system (or the child doesn't exist)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 URIpublic long getLastModified() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean hasBeenModified() throws java.io.IOException
VirtualFileHandler
hasBeenModified
in interface VirtualFileHandler
hasBeenModified
in class AbstractVirtualFileHandler
java.io.IOException
public long getSize() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean exists() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- - thrown on failure to detect existence.public boolean isLeaf() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic boolean isHidden() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic java.io.InputStream openStream() throws java.io.IOException
VirtualFileHandler
java.io.IOException
- for any problem accessing the virtual file systempublic java.net.URI toURI() throws java.net.URISyntaxException
VirtualFileHandler
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 |