|
||||||||||
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
ByteArrayHandler.
Field Summary |
---|
Fields inherited from class org.jboss.virtual.plugins.context.AbstractVirtualFileHandler |
---|
cachedLastModified, log |
Constructor Summary | |
---|---|
ByteArrayHandler(VFSContext context,
VirtualFileHandler parent,
String name,
byte[] bytes)
|
Method Summary | |
---|---|
boolean |
exists()
Tests whether the underlying implementation file still exists. |
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 |
boolean |
isHidden()
Whether it is hidden |
boolean |
isLeaf()
Whether it is a simple leaf of the VFS, i.e. |
boolean |
isNested()
Are we nested in some archive. |
InputStream |
openStream()
Access the file contents. |
boolean |
removeChild(String name)
Remove a child |
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, cleanup, close, decrement, delete, doClose, equals, getChildPathName, getChildVfsUrl, getLocalPathName, getLocalVFSContext, getName, getParent, getPathName, getRealURL, getReferences, getVFSContext, getVfsUrl, getVirtualFile, hasBeenModified, hashCode, increment, internalReplaceChild, isArchive, isTemporary, replaceChild, setPathName, setVfsUrl, simpleFindChild, structuredFindChild, toInternalVfsUrl, toString, toStringLocal, toVfsUrl |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayHandler(VFSContext context, VirtualFileHandler parent, String name, byte[] bytes) throws IOException
IOException
Method Detail |
---|
public URL toURL() throws MalformedURLException, URISyntaxException
VirtualFileHandler
toURL
in interface VirtualFileHandler
toURL
in class AbstractVirtualFileHandler
MalformedURLException
- for any error
URISyntaxException
- for an error parsing the URIpublic URI toURI() throws URISyntaxException
VirtualFileHandler
URISyntaxException
- for an error parsing the URIpublic long getLastModified() throws IOException
VirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic long getSize() throws IOException
VirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic boolean exists() throws IOException
VirtualFileHandler
IOException
- - thrown on failure to detect existence.public boolean isLeaf() throws IOException
VirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic boolean isHidden() throws IOException
VirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic boolean isNested() throws IOException
VirtualFileHandler
IOException
- for any errorpublic InputStream openStream() throws IOException
VirtualFileHandler
IOException
- for any problem accessing the virtual file systempublic List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws IOException
VirtualFileHandler
ignoreErrors
- whether to ignore errors
IOException
- for an error accessing the file systempublic VirtualFileHandler getChild(String path) throws IOException
VirtualFileHandler
path
- the path
null
if not found
IOException
- for an error accessing the file systempublic boolean removeChild(String name)
VirtualFileHandler
name
- child name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |