|
JBoss VFS 3.0.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.vfs.VFS
public class VFS
Virtual File System
| Method Summary | |
|---|---|
static VirtualFile |
getChild(String path)
Find a virtual file. |
static VirtualFile |
getChild(URI uri)
Find a virtual file. |
static VirtualFile |
getChild(URL url)
Deprecated. use getChild(URI) instead |
static List<VirtualFile> |
getChildren()
Get the children |
static List<VirtualFile> |
getChildren(VirtualFileFilter filter)
Get the children |
static List<VirtualFile> |
getChildrenRecursively()
Get all the children recursively |
static List<VirtualFile> |
getChildrenRecursively(VirtualFileFilter filter)
Get all the children recursively |
static VirtualFile |
getRootVirtualFile()
Get the root virtual file for this VFS instance. |
static Closeable |
mount(VirtualFile mountPoint,
FileSystem fileSystem)
Mount a filesystem on a mount point in the VFS. |
static Closeable |
mountAssembly(VirtualFileAssembly assembly,
VirtualFile mountPoint)
Create and mount an assembly file system, returning a single handle which will unmount and close the filesystem when closed. |
static Closeable |
mountReal(File realRoot,
VirtualFile mountPoint)
Create and mount a real file system, returning a single handle which will unmount and close the filesystem when closed. |
static Closeable |
mountTemp(VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount a temporary file system, returning a single handle which will unmount and close the filesystem when closed. |
static Closeable |
mountZip(File zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount a zip file into the filesystem, returning a single handle which will unmount and close the file system when closed. |
static Closeable |
mountZip(InputStream zipData,
String zipName,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount a zip file into the filesystem, returning a single handle which will unmount and close the file system when closed. |
static Closeable |
mountZip(VirtualFile zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount a zip file into the filesystem, returning a single handle which will unmount and close the file system when closed. |
static Closeable |
mountZipExpanded(File zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount an expanded zip file in a temporary file system, returning a single handle which will unmount and close the filesystem when closed. |
static Closeable |
mountZipExpanded(InputStream zipData,
String zipName,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount an expanded zip file in a temporary file system, returning a single handle which will unmount and close the filesystem when closed. |
static Closeable |
mountZipExpanded(VirtualFile zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
Create and mount an expanded zip file in a temporary file system, returning a single handle which will unmount and close the filesystem when closed. |
protected static void |
visit(VirtualFile file,
VirtualFileVisitor visitor)
Visit the virtual file system |
static void |
visit(VirtualFileVisitor visitor)
Visit the virtual file system from the root |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Closeable mount(VirtualFile mountPoint,
FileSystem fileSystem)
throws IOException
mountPoint - the mount pointfileSystem - the file system to mount
IOException - if an I/O error occurs, such as a filesystem already being mounted at the given mount point
@Deprecated
public static VirtualFile getChild(URL url)
throws URISyntaxException
url - the URL whose path component is the child path
IllegalArgumentException - if the path is null
URISyntaxException - for any uri errorpublic static VirtualFile getChild(URI uri)
uri - the URI whose path component is the child path
IllegalArgumentException - if the path is nullpublic static VirtualFile getChild(String path)
path - the child path
IllegalArgumentException - if the path is nullpublic static VirtualFile getRootVirtualFile()
public static List<VirtualFile> getChildren()
throws IOException
IOException - for any problem accessing the virtual file system
public static List<VirtualFile> getChildren(VirtualFileFilter filter)
throws IOException
filter - to filter the children
IOException - for any problem accessing the virtual file system
public static List<VirtualFile> getChildrenRecursively()
throws IOException
This always uses
VisitorAttributes.RECURSE
IOException - for any problem accessing the virtual file system
public static List<VirtualFile> getChildrenRecursively(VirtualFileFilter filter)
throws IOException
This always uses
VisitorAttributes.RECURSE
filter - to filter the children
IOException - for any problem accessing the virtual file system
public static void visit(VirtualFileVisitor visitor)
throws IOException
visitor - the visitor
IOException - for any problem accessing the VFS
IllegalArgumentException - if the visitor is null
protected static void visit(VirtualFile file,
VirtualFileVisitor visitor)
throws IOException
file - the filevisitor - the visitor
IOException - for any problem accessing the VFS
IllegalArgumentException - if the file or visitor is null
public static Closeable mountZip(File zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipFile - the zip file to mountmountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountZip(InputStream zipData,
String zipName,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipData - an input stream containing the zip datazipName - the name of the archivemountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountZip(VirtualFile zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipFile - a zip file in the VFSmountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountReal(File realRoot,
VirtualFile mountPoint)
throws IOException
realRoot - the real filesystem rootmountPoint - the point at which the filesystem should be mounted
IOException - if an error occurs
public static Closeable mountTemp(VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
mountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountZipExpanded(File zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipFile - the zip file to mountmountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountZipExpanded(InputStream zipData,
String zipName,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipData - an input stream containing the zip datazipName - the name of the archivemountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountZipExpanded(VirtualFile zipFile,
VirtualFile mountPoint,
TempFileProvider tempFileProvider)
throws IOException
zipFile - a zip file in the VFSmountPoint - the point at which the filesystem should be mountedtempFileProvider - the temporary file provider
IOException - if an error occurs
public static Closeable mountAssembly(VirtualFileAssembly assembly,
VirtualFile mountPoint)
throws IOException
assembly - an VirtualFileAssembly to mount in the VFSmountPoint - the point at which the filesystem should be mounted
IOException - if an error occurs
|
JBoss VFS 3.0.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||