org.apache.tools.ant.types

Class TarScanner

Implemented Interfaces:
FileScanner, ResourceFactory, SelectorScanner

public class TarScanner
extends ArchiveScanner

Scans tar archives for resources.

Field Summary

Fields inherited from class org.apache.tools.ant.types.ArchiveScanner

srcFile

Fields inherited from class org.apache.tools.ant.DirectoryScanner

DEFAULTEXCLUDES, basedir, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, selectors

Method Summary

protected void
fillMapsFromArchive(Resource src, String encoding, Map fileEntries, Map matchFileEntries, Map dirEntries, Map matchDirEntries)
Fills the file and directory maps with resources read from the archive.

Methods inherited from class org.apache.tools.ant.types.ArchiveScanner

fillMapsFromArchive, getIncludedDirectories, getIncludedDirsCount, getIncludedFiles, getIncludedFilesCount, getResource, init, match, scan, setEncoding, setSrc, setSrc, trimSeparator

Methods inherited from class org.apache.tools.ant.DirectoryScanner

addDefaultExclude, addDefaultExcludes, addExcludes, clearResults, couldHoldIncluded, getBasedir, getDefaultExcludes, getDeselectedDirectories, getDeselectedFiles, getExcludedDirectories, getExcludedFiles, getIncludedDirectories, getIncludedDirsCount, getIncludedFiles, getIncludedFilesCount, getNotIncludedDirectories, getNotIncludedFiles, getResource, isCaseSensitive, isEverythingIncluded, isExcluded, isFollowSymlinks, isIncluded, isSelected, match, match, matchPath, matchPath, matchPatternStart, matchPatternStart, removeDefaultExclude, resetDefaultExcludes, scan, scandir, setBasedir, setBasedir, setCaseSensitive, setExcludes, setFollowSymlinks, setIncludes, setSelectors, slowScan

Method Details

fillMapsFromArchive

protected void fillMapsFromArchive(Resource src,
                                   String encoding,
                                   Map fileEntries,
                                   Map matchFileEntries,
                                   Map dirEntries,
                                   Map matchDirEntries)
Fills the file and directory maps with resources read from the archive.
Overrides:
fillMapsFromArchive in interface 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.