|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VFSAdaptor
The basic adaptor for the VFS that needs to be implemented for a specific jboss-vfs version. This abstraction should be removed once we settle on a single jboss-vfs version.
| Method Summary | |
|---|---|
VirtualFile |
adapt(Object virtualFile)
Adapt a concrete instance of a jboss-vfs VirtualFile. |
Object |
adapt(VirtualFile virtualFile)
Adapt a VirtualFile to a concrete instance of a jboss-vfs VirtualFile. |
VirtualFile |
toVirtualFile(InputStream input)
Adapt an InputStream to a virtual file. |
VirtualFile |
toVirtualFile(String name,
InputStream input)
Adapt an named InputStream to a virtual file. |
VirtualFile |
toVirtualFile(URI uri)
Get the root virtual file |
VirtualFile |
toVirtualFile(URL url)
Get the root virtual file |
| Method Detail |
|---|
VirtualFile toVirtualFile(URL url)
throws IOException
url - the root url
IOException - if there is a problem accessing the VFS
VirtualFile toVirtualFile(URI uri)
throws IOException
uri - the root uri
IOException - if there is a problem accessing the VFS
VirtualFile toVirtualFile(String name,
InputStream input)
throws IOException
name - The name of the virtual fileinput - The input stream
IOException - if there is a problem accessing the VFS
VirtualFile toVirtualFile(InputStream input)
throws IOException
input - The input stream
IOException - if there is a problem accessing the VFSVirtualFile adapt(Object virtualFile)
virtualFile - The VirtualFile instance
IllegalArgumentException - If the given virtualFile is not a VirtualFile supported by the VFSAdaptor implementationObject adapt(VirtualFile virtualFile)
virtualFile - The VirtualFile instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||