public interface VFSAdaptor
| Modifier and Type | Method and Description |
|---|---|
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
|
VirtualFile toVirtualFile(URL url) throws IOException
url - the root urlIOException - if there is a problem accessing the VFSVirtualFile toVirtualFile(URI uri) throws IOException
uri - the root uriIOException - if there is a problem accessing the VFSVirtualFile toVirtualFile(String name, InputStream input) throws IOException
name - The name of the virtual fileinput - The input streamIOException - if there is a problem accessing the VFSVirtualFile toVirtualFile(InputStream input) throws IOException
input - The input streamIOException - if there is a problem accessing the VFSVirtualFile adapt(Object virtualFile)
virtualFile - The VirtualFile instanceIllegalArgumentException - If the given virtualFile is not a VirtualFile supported by the VFSAdaptor implementationObject adapt(VirtualFile virtualFile)
virtualFile - The VirtualFile instanceCopyright © 2016 JBoss by Red Hat. All rights reserved.