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
IOException
public void addZip(String path, File zipFile) throws IOException
IOException
public VirtualFile getFile(VirtualFile mountPoint, VirtualFile target)
mountPoint
- target
- IOException
public List<String> getChildNames(VirtualFile mountPoint, VirtualFile target)
public boolean contains(VirtualFile mountPoint, VirtualFile target)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.