Class JarFileProvider

  • All Implemented Interfaces:
    FileProvider, VfsComponent

    public class JarFileProvider
    extends ZipFileProvider
    A file system provider for Jar files. Provides read-only file systems. This provides access to Jar specific features like Signing and Manifest Attributes.
    • Constructor Detail

      • JarFileProvider

        public JarFileProvider()
    • Method Detail

      • doCreateFileSystem

        protected FileSystem doCreateFileSystem​(java.lang.String scheme,
                                                FileObject file,
                                                FileSystemOptions fileSystemOptions)
                                         throws FileSystemException
        Creates a layered file system. This method is called if the file system is not cached.
        Overrides:
        doCreateFileSystem in class ZipFileProvider
        Parameters:
        scheme - The URI scheme.
        file - The file to create the file system on top of.
        fileSystemOptions - options for new and underlying file systems.
        Returns:
        The file system.
        Throws:
        FileSystemException - if the file system cannot be created.
      • getCapabilities

        public java.util.Collection<Capability> getCapabilities()
        Description copied from interface: FileProvider
        Get the filesystem capabilities.
        These are the same as on the filesystem, but available before the first filesystem was instanciated.
        Specified by:
        getCapabilities in interface FileProvider
        Overrides:
        getCapabilities in class ZipFileProvider
        Returns:
        a Collection of the file systems Capabilities.