|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VirtualFile
A basic abstraction of a VirtualFile used by the OSGi layer. This abstraction should be removed once we settle on a single jboss-vfs version.
| Field Summary | |
|---|---|
static String |
PROPERTY_VFS_LEAK_DEBUGGING
System property to enable detection of unclosed virtual files: jboss.osgi.vfs.leakDebugging |
| Method Summary | |
|---|---|
Enumeration<URL> |
findEntries(String path,
String pattern,
boolean recurse)
Returns entries in this bundle and its attached fragments. |
Certificate[] |
getCertificates()
Get the Certificates for the virtual file. |
VirtualFile |
getChild(String path)
Get a child |
List<VirtualFile> |
getChildren()
Get the children |
List<VirtualFile> |
getChildrenRecursively()
Get all children recursively |
CodeSigner[] |
getCodeSigners()
Get the CodeSigners for a the virtual file. |
Enumeration<String> |
getEntryPaths(String path)
Returns an Enumeration of all the paths ( String objects) to entries within this bundle whose longest
sub-path matches the specified path. |
String |
getName()
Get the simple VF name (X.java) |
VirtualFile |
getParent()
Get the parent |
String |
getPathName()
Get the VFS relative path name (org/jboss/X.java) |
URL |
getStreamURL()
Get the URL used for streaming. |
boolean |
isDirectory()
Whether it is a directory in the VFS. |
boolean |
isFile()
Whether it is a file in the VFS. |
InputStream |
openStream()
Access the file contents. |
URL |
toURL()
Get the VF URL (vfs:/root/org/jboss/X.java) |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Field Detail |
|---|
static final String PROPERTY_VFS_LEAK_DEBUGGING
jboss.osgi.vfs.leakDebugging
| Method Detail |
|---|
String getName()
IllegalStateException - if the file is closedString getPathName()
IllegalStateException - if the file is closed
boolean isFile()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
boolean isDirectory()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
URL toURL()
throws IOException
MalformedURLException - if a url cannot be parsed
IOException - for any problem accessing the virtual file system
URL getStreamURL()
throws IOException
IOException
VirtualFile getParent()
throws IOException
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
VirtualFile getChild(String path)
throws IOException
path - the path
null if not found
IOException - for any problem accessing the VFS
IllegalArgumentException - if the path is null
IllegalStateException - if the file is closed or it is a leaf node
List<VirtualFile> getChildrenRecursively()
throws IOException
This always uses VisitorAttributes#RECURSE
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
List<VirtualFile> getChildren()
throws IOException
This always uses VisitorAttributes#RECURSE
IOException - for any problem accessing the virtual file system
IllegalStateException - if the file is closed
Enumeration<URL> findEntries(String path,
String pattern,
boolean recurse)
throws IOException
IOExceptionBundle.findEntries(String path, String pattern, boolean recurse)
Enumeration<String> getEntryPaths(String path)
throws IOException
String objects) to entries within this bundle whose longest
sub-path matches the specified path. This bundle's class loader is not used to search for entries. Only the contents of
this bundle are searched.
IOExceptionBundle.getEntryPaths(String path)
InputStream openStream()
throws IOException
IOException - for any error accessing the file system
IllegalStateException - if the file is closedCertificate[] getCertificates()
Certificates for the virtual file. Simply extracts the certificate entries from the code signers array.
null if not signedCodeSigner[] getCodeSigners()
CodeSigners for a the virtual file.
CodeSigners for the virtual file, or null if not signed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||