Class TarScanner

All Implemented Interfaces:
FileScanner, ResourceFactory, SelectorScanner

public class TarScanner extends ArchiveScanner
Scans tar archives for resources.
  • Constructor Details

    • TarScanner

      public TarScanner()
  • Method Details

    • fillMapsFromArchive

      protected void fillMapsFromArchive(Resource src, String encoding, Map<String,Resource> fileEntries, Map<String,Resource> matchFileEntries, Map<String,Resource> dirEntries, Map<String,Resource> matchDirEntries)
      Fills the file and directory maps with resources read from the archive.
      Specified by:
      fillMapsFromArchive in class ArchiveScanner
      Parameters:
      src - the archive to scan.
      encoding - encoding used to encode file names inside the archive.
      fileEntries - Map (name to resource) of non-directory resources found inside the archive.
      matchFileEntries - Map (name to resource) of non-directory resources found inside the archive that matched all include patterns and didn't match any exclude patterns.
      dirEntries - Map (name to resource) of directory resources found inside the archive.
      matchDirEntries - Map (name to resource) of directory resources found inside the archive that matched all include patterns and didn't match any exclude patterns.