Class TarFileProvider

All Implemented Interfaces:
Closeable, AutoCloseable, FileProvider, VfsComponent

public class TarFileProvider extends AbstractLayeredFileProvider
A file system provider for Tar files. Provides read-only file systems.
  • Field Details

    • capabilities

      protected static final Collection<Capability> capabilities
      The provider's capabilities
  • Constructor Details

    • TarFileProvider

      public TarFileProvider()
  • Method Details

    • doCreateFileSystem

      protected FileSystem doCreateFileSystem(String scheme, FileObject file, FileSystemOptions fileSystemOptions) throws FileSystemException
      Creates a layered file system. This method is called if the file system is not cached.
      Specified by:
      doCreateFileSystem in class AbstractLayeredFileProvider
      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 Collection<Capability> getCapabilities()
      Description copied from interface: FileProvider
      Gets the file system capabilities.

      These are the same as on the file system, but available before the first file system was instanciated.

      Returns:
      a Collection of the file systems Capabilities.