|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VirtualFileHandler
A virtual file handler
Method Summary | |
---|---|
void |
close()
Close the resources |
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 |
java.lang.String |
getName()
Get the simple VF name (X.java) |
VirtualFileHandler |
getParent()
Get the parent |
java.lang.String |
getPathName()
Get the VFS relative path name (org/jboss/X.java) |
long |
getSize()
Get the size |
VFSContext |
getVFSContext()
Get the VFSContext this file belongs to |
VirtualFile |
getVirtualFile()
Get the virtual file wrapper |
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. |
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) |
java.net.URL |
toVfsUrl()
Get a VFS-based URL |
Method Detail |
---|
java.lang.String getName()
java.lang.String getPathName()
java.net.URL toVfsUrl() throws java.net.MalformedURLException, java.net.URISyntaxException
java.net.MalformedURLException
java.net.URISyntaxException
java.net.URI toURI() throws java.net.URISyntaxException
java.net.URISyntaxException
- for an error parsing the URIjava.net.URL toURL() throws java.net.MalformedURLException, java.net.URISyntaxException
java.net.URISyntaxException
- for an error parsing the URI
java.net.MalformedURLException
- for any errorlong getLastModified() throws java.io.IOException
java.io.IOException
- for any problem accessing the virtual file system
java.lang.IllegalStateException
- if closedboolean hasBeenModified() throws java.io.IOException
java.io.IOException
long getSize() throws java.io.IOException
java.io.IOException
- for any problem accessing the virtual file system
java.lang.IllegalStateException
- if closedboolean isLeaf() throws java.io.IOException
java.io.IOException
- for any problem accessing the virtual file system
java.lang.IllegalStateException
- if the file is closedboolean isHidden() throws java.io.IOException
java.io.IOException
- for any problem accessing the virtual file system
java.lang.IllegalStateException
- if closedjava.io.InputStream openStream() throws java.io.IOException
java.io.IOException
- for any problem accessing the virtual file system
java.lang.IllegalStateException
- if closedVirtualFileHandler getParent() throws java.io.IOException
java.io.IOException
- for an error accessing the file system
java.lang.IllegalStateException
- if closedjava.util.List<VirtualFileHandler> getChildren(boolean ignoreErrors) throws java.io.IOException
ignoreErrors
- whether to ignore errors
java.io.IOException
- for an error accessing the file system
java.lang.IllegalStateException
- if closedVirtualFileHandler findChild(java.lang.String path) throws java.io.IOException
path
- the path
java.io.IOException
- for an error accessing the file system (or the child doesn't exist)
java.lang.IllegalStateException
- if closedVFSContext getVFSContext()
java.lang.IllegalStateException
- if closedVirtualFile getVirtualFile()
java.lang.IllegalStateException
- if closedvoid close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |