|
||||||||||
| 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.ByteArrayHandler
public class ByteArrayHandler
comment
| Field Summary |
|---|
| Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
|---|
cachedLastModified, log, vfsUrl |
| Constructor Summary | |
|---|---|
ByteArrayHandler(AssembledContext context,
VirtualFileHandler parent,
java.lang.String name,
byte[] bytes)
|
|
| 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 |
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, getVirtualFile, 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 ByteArrayHandler(AssembledContext context,
VirtualFileHandler parent,
java.lang.String name,
byte[] bytes)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
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
public java.net.URI toURI()
throws java.net.URISyntaxException
VirtualFileHandler
java.net.URISyntaxException - for an error parsing the URI
public long getLastModified()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public long getSize()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public 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 system
public boolean isHidden()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
public java.io.InputStream openStream()
throws java.io.IOException
VirtualFileHandler
java.io.IOException - for any problem accessing the virtual file system
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 system
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||