Class TarFileSystem

All Implemented Interfaces:
Closeable, AutoCloseable, FileSystem, VfsComponent

public class TarFileSystem extends AbstractFileSystem
A read-only file system for Tar files.
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • ENC

      private static final char[] ENC
    • file

      private final File file
    • tarFile

      private org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarFile
    • cache

      private final Map<FileName,FileObject> cache
      Cache doesn't need to be synchronized since it is read-only.
  • Constructor Details

    • TarFileSystem

      protected TarFileSystem(AbstractFileName rootName, FileObject parentLayer, FileSystemOptions fileSystemOptions) throws FileSystemException
      Constructs a new instance.
      Parameters:
      rootName - The root file name of this file system.
      parentLayer - The parent layer of this file system.
      fileSystemOptions - Options to build this file system.
      Throws:
      FileSystemException - if a file system error occurs.
  • Method Details