|
||||||||||
| 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 |
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 |
String |
getName()
Get the simple VF name (X.java) |
VirtualFileHandler |
getParent()
Get the parent |
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. 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) |
URL |
toVfsUrl()
Get a VFS-based URL |
| Method Detail |
|---|
String getName()
String getPathName()
URL toVfsUrl()
throws MalformedURLException,
URISyntaxException
URISyntaxException - for an error parsing the URI
MalformedURLException - for any error
URI toURI()
throws URISyntaxException
URISyntaxException - for an error parsing the URI
URL toURL()
throws MalformedURLException,
URISyntaxException
URISyntaxException - for an error parsing the URI
MalformedURLException - for any error
long getLastModified()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if closed
boolean hasBeenModified()
throws IOException
IOException - for any error
long getSize()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if closed
boolean exists()
throws IOException
IOException - - thrown on failure to detect existence.
boolean isLeaf()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
boolean isHidden()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if closed
InputStream openStream()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if closed
VirtualFileHandler getParent()
throws IOException
IOException - for an error accessing the file system
IllegalStateException - if closed
List<VirtualFileHandler> getChildren(boolean ignoreErrors)
throws IOException
ignoreErrors - whether to ignore errors
IOException - for an error accessing the file system
IllegalStateException - if closed
VirtualFileHandler getChild(String path)
throws IOException
path - the path
null if not found
IOException - for an error accessing the file system
IllegalStateException - if closedVFSContext getVFSContext()
IllegalStateException - if closedVirtualFile getVirtualFile()
IllegalStateException - if closedvoid close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||