public class VirtualFileAssembly extends Object implements Closeable
| Constructor and Description |
|---|
VirtualFileAssembly() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String path,
File root) |
void |
add(String path,
VirtualFile virtualFile)
Add a
VirtualFile to the assembly in a given path. |
void |
add(VirtualFile virtualFile)
Add a
VirtualFile to the assembly. |
void |
addZip(String path,
File zipFile) |
void |
close()
Close the assembly and nested resources.
|
boolean |
contains(VirtualFile mountPoint,
VirtualFile target) |
List<String> |
getChildNames(VirtualFile mountPoint,
VirtualFile target)
Returns a list of all the names of the children in the assembly.
|
VirtualFile |
getFile(VirtualFile mountPoint,
VirtualFile target)
Get the VirtualFile from the assembly.
|
public void add(VirtualFile virtualFile)
VirtualFile to the assembly.virtualFile - public void add(String path, VirtualFile virtualFile)
VirtualFile to the assembly in a given path.path - virtualFile - public void add(String path, File root) throws IOException
IOExceptionpublic void addZip(String path, File zipFile) throws IOException
IOExceptionpublic VirtualFile getFile(VirtualFile mountPoint, VirtualFile target)
mountPoint - target - IOExceptionpublic List<String> getChildNames(VirtualFile mountPoint, VirtualFile target)
public boolean contains(VirtualFile mountPoint, VirtualFile target)
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2012 JBoss by Red Hat. All Rights Reserved.