Package | Description |
---|---|
org.jboss.vfs | |
org.jboss.vfs.spi | |
org.jboss.vfs.util | |
org.jboss.vfs.util.automount |
Modifier and Type | Method and Description |
---|---|
VirtualFile |
VirtualFile.getChild(String path)
Get a child virtual file.
|
static VirtualFile |
VFS.getChild(String path)
Find a virtual file.
|
static VirtualFile |
VFS.getChild(URI uri)
Find a virtual file.
|
static VirtualFile |
VFS.getChild(URL url)
Deprecated.
use getChild(URI) instead
|
VirtualFile |
VirtualFileAssembly.getFile(VirtualFile mountPoint,
VirtualFile target)
Get the VirtualFile from the assembly.
|
VirtualFile |
VirtualFile.getParent()
Get a
VirtualFile which represents the parent of this instance. |
VirtualFile[] |
VirtualFile.getParentFiles()
Get the all the parent files of this virtual file from this file to the root.
|
static VirtualFile |
VFS.getRootVirtualFile()
Get the root virtual file for this VFS instance.
|
Modifier and Type | Method and Description |
---|---|
List<VirtualFile> |
VirtualFile.getChildren()
Get the children.
|
static List<VirtualFile> |
VFS.getChildren()
Get the children
|
List<VirtualFile> |
VirtualFile.getChildren(VirtualFileFilter filter)
Get the children
|
static List<VirtualFile> |
VFS.getChildren(VirtualFileFilter filter)
Get the children
|
List<VirtualFile> |
VirtualFile.getChildrenRecursively()
Get all the children recursively
|
static List<VirtualFile> |
VFS.getChildrenRecursively()
Get all the children recursively
|
List<VirtualFile> |
VirtualFile.getChildrenRecursively(VirtualFileFilter filter)
Get all the children recursively
|
static List<VirtualFile> |
VFS.getChildrenRecursively(VirtualFileFilter filter)
Get all the children recursively
|
List<VirtualFile> |
VirtualFile.getParentFileList()
Get the all the parent files of this virtual file from this file to the root as a list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VirtualFileFilter.accepts(VirtualFile file)
Match the virtual file
|
void |
VirtualFileAssembly.add(String path,
VirtualFile virtualFile)
Add a
VirtualFile to the assembly in a given path. |
void |
VirtualFileAssembly.add(VirtualFile virtualFile)
Add a
VirtualFile to the assembly. |
static void |
VFSUtils.addManifestLocations(VirtualFile file,
List<VirtualFile> paths)
Add manifest paths
|
boolean |
VirtualFileAssembly.contains(VirtualFile mountPoint,
VirtualFile target) |
static void |
VFSUtils.copyChildrenRecursive(VirtualFile original,
VirtualFile target)
Copy all the children from the original
VirtualFile the target recursively. |
static InputStream |
VFSUtils.createJarFileInputStream(VirtualFile virtualFile)
Get an input stream that will always be consumable as a Zip/Jar file.
|
boolean |
VirtualFile.equals(VirtualFile o)
Determine whether the given object is equal to this one.
|
List<String> |
VirtualFileAssembly.getChildNames(VirtualFile mountPoint,
VirtualFile target)
Returns a list of all the names of the children in the assembly.
|
VirtualFile |
VirtualFileAssembly.getFile(VirtualFile mountPoint,
VirtualFile target)
Get the VirtualFile from the assembly.
|
static Manifest |
VFSUtils.getManifest(VirtualFile archive)
Get a manifest from a virtual file, assuming the virtual file is the root of an archive
|
String |
VirtualFile.getPathNameRelativeTo(VirtualFile parent)
Get the path name relative to a parent virtual file.
|
static URI |
VFSUtils.getPhysicalURI(VirtualFile file)
Get a physical URI for a virtual file.
|
static URL |
VFSUtils.getPhysicalURL(VirtualFile file)
Get a physical URL for a virtual file.
|
static URI |
VFSUtils.getRootURI(VirtualFile file)
Get the physical root URL of the filesystem of a virtual file.
|
static URL |
VFSUtils.getRootURL(VirtualFile file)
Get the physical root URL of the filesystem of a virtual file.
|
static URI |
VFSUtils.getVirtualURI(VirtualFile file)
Get the virtual URI for a virtual file.
|
static URL |
VFSUtils.getVirtualURL(VirtualFile file)
Get the virtual URL for a virtual file.
|
boolean |
VisitorAttributes.isRecurse(VirtualFile file)
Whether to recurse into the non-leaf file
|
static Closeable |
VFS.mount(VirtualFile mountPoint,
FileSystem fileSystem)
Mount a filesystem on a mount point in the VFS.
|
static Closeable |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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 |
VFS.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.
|
static Manifest |
VFSUtils.readManifest(VirtualFile manifest)
Read the manifest from given manifest VirtualFile.
|
static void |
VFSUtils.recursiveCopy(File original,
VirtualFile destDir)
Recursively copy a file or directory from one location to another.
|
static void |
VFSUtils.recursiveCopy(VirtualFile original,
File destDir)
Recursively copy a file or directory from one location to another.
|
static void |
VFSUtils.recursiveCopy(VirtualFile original,
VirtualFile destDir)
Recursively copy a file or directory from one location to another.
|
static boolean |
VFSUtils.recursiveDelete(VirtualFile root)
Attempt to recursively delete a virtual file.
|
void |
VirtualFileVisitor.visit(VirtualFile virtualFile)
Visit a virtual file
|
protected static void |
VFS.visit(VirtualFile file,
VirtualFileVisitor visitor)
Visit the virtual file system
|
static void |
VFSUtils.writeFile(VirtualFile virtualFile,
byte[] bytes)
Write the given bytes to the given virtual file, replacing its current contents (if any) or creating a new file if
one does not exist.
|
static void |
VFSUtils.writeFile(VirtualFile virtualFile,
InputStream is)
Write the content from the given
InputStream to the given virtual file, replacing its current contents (if any) or creating a new file if
one does not exist. |
Modifier and Type | Method and Description |
---|---|
static void |
VFSUtils.addManifestLocations(VirtualFile file,
List<VirtualFile> paths)
Add manifest paths
|
static String |
VFSUtils.getPathsString(Collection<VirtualFile> paths)
Get the paths string for a collection of virtual files
|
Constructor and Description |
---|
VFSInputSource(VirtualFile file) |
VirtualJarInputStream.VirtualJarEntry(String name,
VirtualFile virtualFile,
Attributes attributes)
Construct a new
|
VirtualJarInputStream(VirtualFile root)
Construct a
VirtualJarInputStream from a VirtualFile root |
Modifier and Type | Method and Description |
---|---|
boolean |
RootFileSystem.delete(VirtualFile mountPoint,
VirtualFile target)
Attempt to delete a virtual file within this filesystem.
|
boolean |
RealFileSystem.delete(VirtualFile mountPoint,
VirtualFile target)
Attempt to delete a virtual file within this filesystem.
|
boolean |
JavaZipFileSystem.delete(VirtualFile mountPoint,
VirtualFile target)
Attempt to delete a virtual file within this filesystem.
|
boolean |
FileSystem.delete(VirtualFile mountPoint,
VirtualFile target)
Attempt to delete a virtual file within this filesystem.
|
boolean |
AssemblyFileSystem.delete(VirtualFile mountPoint,
VirtualFile target)
Attempt to delete a virtual file within this filesystem.
|
boolean |
RootFileSystem.exists(VirtualFile mountPoint,
VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.
|
boolean |
RealFileSystem.exists(VirtualFile mountPoint,
VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.
|
boolean |
JavaZipFileSystem.exists(VirtualFile mountPoint,
VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.
|
boolean |
FileSystem.exists(VirtualFile mountPoint,
VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.
|
boolean |
AssemblyFileSystem.exists(VirtualFile mountPoint,
VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.
|
CodeSigner[] |
RootFileSystem.getCodeSigners(VirtualFile mountPoint,
VirtualFile target)
Get the
CodeSigner s for a the virtual file. |
CodeSigner[] |
RealFileSystem.getCodeSigners(VirtualFile mountPoint,
VirtualFile target)
Get the
CodeSigner s for a the virtual file. |
CodeSigner[] |
JavaZipFileSystem.getCodeSigners(VirtualFile mountPoint,
VirtualFile target)
Get the
CodeSigner s for a the virtual file. |
CodeSigner[] |
FileSystem.getCodeSigners(VirtualFile mountPoint,
VirtualFile target)
Get the
CodeSigner s for a the virtual file. |
CodeSigner[] |
AssemblyFileSystem.getCodeSigners(VirtualFile mountPoint,
VirtualFile target)
Get the
CodeSigner s for a the virtual file. |
List<String> |
RootFileSystem.getDirectoryEntries(VirtualFile mountPoint,
VirtualFile target)
Read a directory.
|
List<String> |
RealFileSystem.getDirectoryEntries(VirtualFile mountPoint,
VirtualFile target)
Read a directory.
|
List<String> |
JavaZipFileSystem.getDirectoryEntries(VirtualFile mountPoint,
VirtualFile target)
Read a directory.
|
List<String> |
FileSystem.getDirectoryEntries(VirtualFile mountPoint,
VirtualFile target)
Read a directory.
|
List<String> |
AssemblyFileSystem.getDirectoryEntries(VirtualFile mountPoint,
VirtualFile target)
Read a directory.
|
File |
RootFileSystem.getFile(VirtualFile mountPoint,
VirtualFile target)
Get a real
File for the given path within this filesystem. |
File |
RealFileSystem.getFile(VirtualFile mountPoint,
VirtualFile target)
Get a real
File for the given path within this filesystem. |
File |
JavaZipFileSystem.getFile(VirtualFile mountPoint,
VirtualFile target)
Get a real
File for the given path within this filesystem. |
File |
FileSystem.getFile(VirtualFile mountPoint,
VirtualFile target)
Get a real
File for the given path within this filesystem. |
File |
AssemblyFileSystem.getFile(VirtualFile mountPoint,
VirtualFile target)
Get a real
File for the given path within this filesystem. |
long |
RootFileSystem.getLastModified(VirtualFile mountPoint,
VirtualFile target)
Get the last modification time of a virtual file within this filesystem.
|
long |
RealFileSystem.getLastModified(VirtualFile mountPoint,
VirtualFile target)
Get the last modification time of a virtual file within this filesystem.
|
long |
JavaZipFileSystem.getLastModified(VirtualFile mountPoint,
VirtualFile target)
Get the last modification time of a virtual file within this filesystem.
|
long |
FileSystem.getLastModified(VirtualFile mountPoint,
VirtualFile target)
Get the last modification time of a virtual file within this filesystem.
|
long |
AssemblyFileSystem.getLastModified(VirtualFile mountPoint,
VirtualFile target)
Get the last modification time of a virtual file within this filesystem.
|
long |
RootFileSystem.getSize(VirtualFile mountPoint,
VirtualFile target)
Get the size of a virtual file within this filesystem.
|
long |
RealFileSystem.getSize(VirtualFile mountPoint,
VirtualFile target)
Get the size of a virtual file within this filesystem.
|
long |
JavaZipFileSystem.getSize(VirtualFile mountPoint,
VirtualFile target)
Get the size of a virtual file within this filesystem.
|
long |
FileSystem.getSize(VirtualFile mountPoint,
VirtualFile target)
Get the size of a virtual file within this filesystem.
|
long |
AssemblyFileSystem.getSize(VirtualFile mountPoint,
VirtualFile target)
Get the size of a virtual file within this filesystem.
|
boolean |
RootFileSystem.isDirectory(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.
|
boolean |
RealFileSystem.isDirectory(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.
|
boolean |
JavaZipFileSystem.isDirectory(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.
|
boolean |
FileSystem.isDirectory(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.
|
boolean |
AssemblyFileSystem.isDirectory(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.
|
boolean |
RootFileSystem.isFile(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.
|
boolean |
RealFileSystem.isFile(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.
|
boolean |
JavaZipFileSystem.isFile(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.
|
boolean |
FileSystem.isFile(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.
|
boolean |
AssemblyFileSystem.isFile(VirtualFile mountPoint,
VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.
|
InputStream |
RootFileSystem.openInputStream(VirtualFile mountPoint,
VirtualFile target)
Open an input stream for the file at the given relative path.
|
InputStream |
RealFileSystem.openInputStream(VirtualFile mountPoint,
VirtualFile target)
Open an input stream for the file at the given relative path.
|
InputStream |
JavaZipFileSystem.openInputStream(VirtualFile mountPoint,
VirtualFile target)
Open an input stream for the file at the given relative path.
|
InputStream |
FileSystem.openInputStream(VirtualFile mountPoint,
VirtualFile target)
Open an input stream for the file at the given relative path.
|
InputStream |
AssemblyFileSystem.openInputStream(VirtualFile mountPoint,
VirtualFile target)
Open an input stream for the file at the given relative path.
|
Modifier and Type | Method and Description |
---|---|
List<VirtualFile> |
FilterVirtualFileVisitor.getMatched()
Get the matched files
|
Modifier and Type | Method and Description |
---|---|
boolean |
SuffixesExcludeFilter.accepts(VirtualFile file) |
boolean |
SuffixMatchFilter.accepts(VirtualFile file)
Accept any file that ends with one of the filter suffixes.
|
boolean |
MatchAllVirtualFileFilter.accepts(VirtualFile file) |
boolean |
IncludeExcludeVisitorAttributes.accepts(VirtualFile file) |
boolean |
FileNameVirtualFileFilter.accepts(VirtualFile file)
Do we accept file.
|
boolean |
ExtensibleFilter.accepts(VirtualFile file)
If the filename matches any string in the prefix, suffix, or matches array, return false.
|
boolean |
AbstractPatternVirtualFileFilter.accepts(VirtualFile file) |
protected String |
IncludeFileNameVirtualFileFilter.getMatchString(VirtualFile file) |
protected abstract String |
AbstractPatternVirtualFileFilter.getMatchString(VirtualFile file)
Extract match string from file.
|
protected String |
FileNameVirtualFileFilter.getPathName(VirtualFile file)
Get the path name for the VirtualFile.
|
void |
FilterVirtualFileVisitor.visit(VirtualFile virtualFile) |
Constructor and Description |
---|
LazyInputStream(VirtualFile file) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Automounter.addHandle(VirtualFile owner,
Closeable handle)
Add handle to owner, to be auto closed.
|
static void |
Automounter.cleanup(VirtualFile owner)
Cleanup all references from the owner.
|
static boolean |
Automounter.isMounted(VirtualFile target)
Determines whether a target
VirtualFile is mounted. |
static void |
Automounter.mount(MountOwner owner,
VirtualFile target,
MountOption... mountOptions)
Mount provided
VirtualFile (if not mounted) and add an owner entry. |
static void |
Automounter.mount(Object owner,
VirtualFile target,
MountOption... mountOptions)
Mount provided
VirtualFile (if not mounted) and add an owner entry. |
static void |
Automounter.mount(VirtualFile target,
MountOption... mountOptions)
Mount provided
VirtualFile (if not mounted) and set the owner to be the provided target. |
static void |
Automounter.mount(VirtualFile owner,
VirtualFile target,
MountOption... mountOptions)
Mount provided
VirtualFile (if not mounted) and add an owner entry. |
static boolean |
Automounter.removeHandle(VirtualFile owner,
Closeable handle)
Remove handle from owner.
|
Constructor and Description |
---|
VirtualFileOwner(VirtualFile file)
Constructed with a
VirtualFile owner |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.