Uses of Class
org.jboss.vfs.VirtualFile
-
Packages that use VirtualFile Package Description org.jboss.vfs org.jboss.vfs.protocol org.jboss.vfs.spi org.jboss.vfs.util org.jboss.vfs.util.automount -
-
Uses of VirtualFile in org.jboss.vfs
Fields in org.jboss.vfs declared as VirtualFile Modifier and Type Field Description private VirtualFile
VirtualJarInputStream. currentVirtualFile
private VirtualFile
VFSInputSource. file
private VirtualFile
VFS.Mount. mountPoint
private VirtualFile
VirtualFileAssembly. mountRoot
private VirtualFile
VirtualFile. parent
private VirtualFile
VirtualJarInputStream. root
private static VirtualFile
VFS. rootVirtualFile
private VirtualFile
VirtualFileAssembly.AssemblyNode. target
private VirtualFile
VirtualJarInputStream.VirtualJarEntry. virtualFile
Fields in org.jboss.vfs with type parameters of type VirtualFile Modifier and Type Field Description private java.util.Deque<java.util.Iterator<VirtualFile>>
VirtualJarInputStream. entryItr
private static java.util.concurrent.ConcurrentMap<VirtualFile,java.util.Map<java.lang.String,VFS.Mount>>
VFS. mounts
Methods in org.jboss.vfs that return VirtualFile Modifier and Type Method Description private static VirtualFile
VFS. createDefaultRoot()
static VirtualFile
VFS. getChild(java.lang.String path)
Find a virtual file.static VirtualFile
VFS. getChild(java.net.URI uri)
Find a virtual file.static VirtualFile
VFS. getChild(java.net.URL url)
Deprecated.use getChild(URI) insteadVirtualFile
VirtualFile. getChild(java.lang.String path)
Get a child virtual file.VirtualFile
VirtualFileAssembly.AssemblyNode. getFile(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint)
Get the VirtualFile for a given path.VirtualFile
VirtualFileAssembly. getFile(VirtualFile mountPoint, VirtualFile target)
Get the VirtualFile from the assembly.(package private) VirtualFile
VFS.Mount. getMountPoint()
VirtualFile
VirtualFile. getParent()
Get aVirtualFile
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.private VirtualFile[]
VirtualFile. getParentFiles(int idx)
static VirtualFile
VFS. getRootVirtualFile()
Get the root virtual file for this VFS instance.Methods in org.jboss.vfs that return types with arguments of type VirtualFile Modifier and Type Method Description static java.util.List<VirtualFile>
VFS. getChildren()
Get the childrenstatic java.util.List<VirtualFile>
VFS. getChildren(VirtualFileFilter filter)
Get the childrenjava.util.List<VirtualFile>
VirtualFile. getChildren()
Get the children.java.util.List<VirtualFile>
VirtualFile. getChildren(VirtualFileFilter filter)
Get the childrenstatic java.util.List<VirtualFile>
VFS. getChildrenRecursively()
Get all the children recursivelystatic java.util.List<VirtualFile>
VFS. getChildrenRecursively(VirtualFileFilter filter)
Get all the children recursivelyjava.util.List<VirtualFile>
VirtualFile. getChildrenRecursively()
Get all the children recursivelyjava.util.List<VirtualFile>
VirtualFile. getChildrenRecursively(VirtualFileFilter filter)
Get all the children recursivelyjava.util.List<VirtualFile>
VirtualFile. getParentFileList()
Get the all the parent files of this virtual file from this file to the root as a list.Methods in org.jboss.vfs with parameters of type VirtualFile Modifier and Type Method Description boolean
VirtualFileFilter. accepts(VirtualFile file)
Match the virtual fileboolean
VisitorAttributes.AcceptAnyFilter. accepts(VirtualFile file)
void
VirtualFileAssembly. add(java.lang.String path, VirtualFile virtualFile)
Add aVirtualFile
to the assembly in a given path.void
VirtualFileAssembly. add(VirtualFile virtualFile)
Add aVirtualFile
to the assembly.static void
VFSUtils. addManifestLocations(VirtualFile file, java.util.List<VirtualFile> paths)
Add manifest pathsboolean
VirtualFileAssembly. contains(VirtualFile mountPoint, VirtualFile target)
static void
VFSUtils. copyChildrenRecursive(VirtualFile original, VirtualFile target)
Copy all the children from the originalVirtualFile
the target recursively.static java.io.InputStream
VFSUtils. createJarFileInputStream(VirtualFile virtualFile)
Get an input stream that will always be consumable as a Zip/Jar file.private static MountHandle
VFS. doMount(FileSystem fileSystem, VirtualFile mountPoint, java.io.Closeable... additionalCloseables)
boolean
VirtualFile. equals(VirtualFile o)
Determine whether the given object is equal to this one.java.io.IOException
VFSMessages_$bundle. fileSystemAlreadyMountedAtMountPoint(VirtualFile mountPoint)
java.io.IOException
VFSMessages. fileSystemAlreadyMountedAtMountPoint(VirtualFile mountPoint)
java.util.List<java.lang.String>
VirtualFileAssembly. getChildNames(VirtualFile mountPoint, VirtualFile target)
Returns a list of all the names of the children in the assembly.private java.lang.String
VirtualJarInputStream. getEntryName(VirtualFile entry)
Get the entry name from a VirtualFile.VirtualFile
VirtualFileAssembly.AssemblyNode. getFile(VirtualFileAssembly.Path path, VirtualFile assemblyMountPoint)
Get the VirtualFile for a given path.VirtualFile
VirtualFileAssembly. getFile(VirtualFile mountPoint, VirtualFile target)
Get the VirtualFile from the assembly.static java.util.jar.Manifest
VFSUtils. getManifest(VirtualFile archive)
Get a manifest from a virtual file, assuming the virtual file is the root of an archive(package private) static VFS.Mount
VFS. getMount(VirtualFile virtualFile)
java.lang.String
VirtualFile. getPathNameRelativeTo(VirtualFile parent)
Get the path name relative to a parent virtual file.private void
VirtualFile. getPathNameRelativeTo(VirtualFile parent, java.lang.StringBuilder builder)
static java.net.URI
VFSUtils. getPhysicalURI(VirtualFile file)
Get a physical URI for a virtual file.static java.net.URL
VFSUtils. getPhysicalURL(VirtualFile file)
Get a physical URL for a virtual file.static java.net.URI
VFSUtils. getRootURI(VirtualFile file)
Get the physical root URL of the filesystem of a virtual file.static java.net.URL
VFSUtils. getRootURL(VirtualFile file)
Get the physical root URL of the filesystem of a virtual file.(package private) static java.util.Set<java.lang.String>
VFS. getSubmounts(VirtualFile virtualFile)
Get all immediate submounts for a path.static java.net.URI
VFSUtils. getVirtualURI(VirtualFile file)
Get the virtual URI for a virtual file.static java.net.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 filestatic java.io.Closeable
VFS. mount(VirtualFile mountPoint, FileSystem fileSystem)
Mount a filesystem on a mount point in the VFS.static java.io.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 java.io.Closeable
VFS. mountReal(java.io.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 java.io.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 java.io.Closeable
VFS. mountZip(java.io.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 java.io.Closeable
VFS. mountZip(java.io.InputStream zipData, java.lang.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 java.io.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 java.io.Closeable
VFS. mountZipExpanded(java.io.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 java.io.Closeable
VFS. mountZipExpanded(java.io.InputStream zipData, java.lang.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 java.io.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.private void
VirtualJarInputStream. openCurrent(VirtualFile current)
Open the current virtual file as the current JarEntry stream.java.lang.IllegalArgumentException
VFSMessages_$bundle. parentIsNotAncestor(VirtualFile parent)
java.lang.IllegalArgumentException
VFSMessages. parentIsNotAncestor(VirtualFile parent)
java.lang.IllegalArgumentException
VFSMessages_$bundle. problemCreatingNewDirectory(VirtualFile targetChild)
java.lang.IllegalArgumentException
VFSMessages. problemCreatingNewDirectory(VirtualFile targetChild)
static java.util.jar.Manifest
VFSUtils. readManifest(VirtualFile manifest)
Read the manifest from given manifest VirtualFile.static void
VFSUtils. recursiveCopy(java.io.File original, VirtualFile destDir)
Recursively copy a file or directory from one location to another.static void
VFSUtils. recursiveCopy(VirtualFile original, java.io.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.private void
VirtualFileAssembly.AssemblyNode. setTarget(VirtualFile target)
void
VFSLogger_$logger. vfsMountLeaked(VirtualFile mountPoint, java.lang.Throwable cause)
void
VFSLogger. vfsMountLeaked(VirtualFile mountPoint, java.lang.Throwable cause)
protected static void
VFS. visit(VirtualFile file, VirtualFileVisitor visitor)
Visit the virtual file systemvoid
VirtualFileVisitor. visit(VirtualFile virtualFile)
Visit a virtual filestatic 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, java.io.InputStream is)
Write the content from the givenInputStream
to the given virtual file, replacing its current contents (if any) or creating a new file if one does not exist.Method parameters in org.jboss.vfs with type arguments of type VirtualFile Modifier and Type Method Description static void
VFSUtils. addManifestLocations(VirtualFile file, java.util.List<VirtualFile> paths)
Add manifest pathsstatic java.lang.String
VFSUtils. getPathsString(java.util.Collection<VirtualFile> paths)
Get the paths string for a collection of virtual filesConstructors in org.jboss.vfs with parameters of type VirtualFile Constructor Description Mount(FileSystem fileSystem, VirtualFile mountPoint)
VFSInputSource(VirtualFile file)
VirtualFile(java.lang.String name, VirtualFile parent)
VirtualJarEntry(java.lang.String name, VirtualFile virtualFile, java.util.jar.Attributes attributes)
Construct a newVirtualJarInputStream(VirtualFile root)
Construct aVirtualJarInputStream
from aVirtualFile
root -
Uses of VirtualFile in org.jboss.vfs.protocol
Fields in org.jboss.vfs.protocol declared as VirtualFile Modifier and Type Field Description private VirtualFile
FileURLConnection. file
private VirtualFile
VirtualFileURLConnection. file
private VirtualFile
FileURLConnection. mountPoint
-
Uses of VirtualFile in org.jboss.vfs.spi
Methods in org.jboss.vfs.spi that return VirtualFile Modifier and Type Method Description private VirtualFile
AssemblyFileSystem. getExistingFile(VirtualFile mountPoint, VirtualFile target)
Methods in org.jboss.vfs.spi with parameters of type VirtualFile Modifier and Type Method Description boolean
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. delete(VirtualFile mountPoint, VirtualFile target)
Attempt to delete a virtual file within this filesystem.boolean
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. exists(VirtualFile mountPoint, VirtualFile target)
Ascertain the existance of a virtual file within this filesystem.private JavaZipFileSystem.ZipNode
JavaZipFileSystem.ZipNode. find(VirtualFile mountPoint, VirtualFile target)
java.security.CodeSigner[]
AssemblyFileSystem. getCodeSigners(VirtualFile mountPoint, VirtualFile target)
Get theCodeSigner
s for a the virtual file.java.security.CodeSigner[]
FileSystem. getCodeSigners(VirtualFile mountPoint, VirtualFile target)
Get theCodeSigner
s for a the virtual file.java.security.CodeSigner[]
JavaZipFileSystem. getCodeSigners(VirtualFile mountPoint, VirtualFile target)
Get theCodeSigner
s for a the virtual file.java.security.CodeSigner[]
RealFileSystem. getCodeSigners(VirtualFile mountPoint, VirtualFile target)
Get theCodeSigner
s for a the virtual file.java.security.CodeSigner[]
RootFileSystem. getCodeSigners(VirtualFile mountPoint, VirtualFile target)
Get theCodeSigner
s for a the virtual file.java.util.List<java.lang.String>
AssemblyFileSystem. getDirectoryEntries(VirtualFile mountPoint, VirtualFile target)
Read a directory.java.util.List<java.lang.String>
FileSystem. getDirectoryEntries(VirtualFile mountPoint, VirtualFile target)
Read a directory.java.util.List<java.lang.String>
JavaZipFileSystem. getDirectoryEntries(VirtualFile mountPoint, VirtualFile target)
Read a directory.java.util.List<java.lang.String>
RealFileSystem. getDirectoryEntries(VirtualFile mountPoint, VirtualFile target)
Read a directory.java.util.List<java.lang.String>
RootFileSystem. getDirectoryEntries(VirtualFile mountPoint, VirtualFile target)
Read a directory.private VirtualFile
AssemblyFileSystem. getExistingFile(VirtualFile mountPoint, VirtualFile target)
private JavaZipFileSystem.ZipNode
JavaZipFileSystem. getExistingZipNode(VirtualFile mountPoint, VirtualFile target)
java.io.File
AssemblyFileSystem. getFile(VirtualFile mountPoint, VirtualFile target)
Get a realFile
for the given path within this filesystem.java.io.File
FileSystem. getFile(VirtualFile mountPoint, VirtualFile target)
Get a realFile
for the given path within this filesystem.java.io.File
JavaZipFileSystem. getFile(VirtualFile mountPoint, VirtualFile target)
Get a realFile
for the given path within this filesystem.java.io.File
RealFileSystem. getFile(VirtualFile mountPoint, VirtualFile target)
Get a realFile
for the given path within this filesystem.java.io.File
RootFileSystem. getFile(VirtualFile mountPoint, VirtualFile target)
Get a realFile
for the given path within this filesystem.long
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. getLastModified(VirtualFile mountPoint, VirtualFile target)
Get the last modification time of a virtual file within this filesystem.long
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. getSize(VirtualFile mountPoint, VirtualFile target)
Get the size of a virtual file within this filesystem.private JavaZipFileSystem.ZipNode
JavaZipFileSystem. getZipNode(VirtualFile mountPoint, VirtualFile target)
boolean
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. isDirectory(VirtualFile mountPoint, VirtualFile target)
Ascertain whether a virtual file within this filesystem is a directory.boolean
AssemblyFileSystem. 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
JavaZipFileSystem. 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
RootFileSystem. isFile(VirtualFile mountPoint, VirtualFile target)
Ascertain whether a virtual file within this filesystem is a plain file.java.io.InputStream
AssemblyFileSystem. openInputStream(VirtualFile mountPoint, VirtualFile target)
Open an input stream for the file at the given relative path.java.io.InputStream
FileSystem. openInputStream(VirtualFile mountPoint, VirtualFile target)
Open an input stream for the file at the given relative path.java.io.InputStream
JavaZipFileSystem. openInputStream(VirtualFile mountPoint, VirtualFile target)
Open an input stream for the file at the given relative path.java.io.InputStream
RealFileSystem. openInputStream(VirtualFile mountPoint, VirtualFile target)
Open an input stream for the file at the given relative path.java.io.InputStream
RootFileSystem. openInputStream(VirtualFile mountPoint, VirtualFile target)
Open an input stream for the file at the given relative path. -
Uses of VirtualFile in org.jboss.vfs.util
Fields in org.jboss.vfs.util declared as VirtualFile Modifier and Type Field Description private VirtualFile
LazyInputStream. file
Fields in org.jboss.vfs.util with type parameters of type VirtualFile Modifier and Type Field Description private java.util.List<VirtualFile>
FilterVirtualFileVisitor. matched
What is matchedMethods in org.jboss.vfs.util that return types with arguments of type VirtualFile Modifier and Type Method Description java.util.List<VirtualFile>
FilterVirtualFileVisitor. getMatched()
Get the matched filesMethods in org.jboss.vfs.util with parameters of type VirtualFile Modifier and Type Method Description boolean
AbstractPatternVirtualFileFilter. accepts(VirtualFile file)
boolean
ExtensibleFilter. accepts(VirtualFile file)
If the filename matches any string in the prefix, suffix, or matches array, return false.boolean
FileNameVirtualFileFilter. accepts(VirtualFile file)
Do we accept file.boolean
IncludeExcludeVisitorAttributes. accepts(VirtualFile file)
boolean
MatchAllVirtualFileFilter. accepts(VirtualFile file)
boolean
SuffixesExcludeFilter. accepts(VirtualFile file)
boolean
SuffixMatchFilter. accepts(VirtualFile file)
Accept any file that ends with one of the filter suffixes.protected abstract java.lang.String
AbstractPatternVirtualFileFilter. getMatchString(VirtualFile file)
Extract match string from file.protected java.lang.String
IncludeFileNameVirtualFileFilter. getMatchString(VirtualFile file)
protected java.lang.String
FileNameVirtualFileFilter. getPathName(VirtualFile file)
Get the path name for the VirtualFile.void
FilterVirtualFileVisitor. visit(VirtualFile virtualFile)
Constructors in org.jboss.vfs.util with parameters of type VirtualFile Constructor Description LazyInputStream(VirtualFile file)
-
Uses of VirtualFile in org.jboss.vfs.util.automount
Methods in org.jboss.vfs.util.automount with parameters of type VirtualFile Modifier and Type Method Description static boolean
Automounter. addHandle(VirtualFile owner, java.io.Closeable handle)
Add handle to owner, to be auto closed.static void
Automounter. cleanup(VirtualFile owner)
Cleanup all references from the owner.private Automounter.RegistryEntry
Automounter.RegistryEntry. find(VirtualFile file)
(package private) static Automounter.RegistryEntry
Automounter. getEntry(VirtualFile virtualFile)
Get the entry from the tree creating the entry if not present.static boolean
Automounter. isMounted(VirtualFile target)
Determines whether a targetVirtualFile
is mounted.static void
Automounter. mount(java.lang.Object owner, VirtualFile target, MountOption... mountOptions)
Mount providedVirtualFile
(if not mounted) and add an owner entry.static void
Automounter. mount(MountOwner owner, VirtualFile target, MountOption... mountOptions)
Mount providedVirtualFile
(if not mounted) and add an owner entry.static void
Automounter. mount(VirtualFile target, MountOption... mountOptions)
Mount providedVirtualFile
(if not mounted) and set the owner to be the provided target.static void
Automounter. mount(VirtualFile owner, VirtualFile target, MountOption... mountOptions)
Mount providedVirtualFile
(if not mounted) and add an owner entry.private void
Automounter.RegistryEntry. mount(VirtualFile target, MountConfig mountConfig)
static boolean
Automounter. removeHandle(VirtualFile owner, java.io.Closeable handle)
Remove handle from owner.Constructors in org.jboss.vfs.util.automount with parameters of type VirtualFile Constructor Description VirtualFileOwner(VirtualFile file)
Constructed with aVirtualFile
owner
-