Top Description Fields Constructors Methods
org.apache.tools.ant.types

public Class TarScanner

extends ArchiveScanner
Class Inheritance
Imports
java.io.IOException, java.util.Map, org.apache.tools.ant.BuildException, org.apache.tools.ant.types.resources.TarResource, org.apache.tools.tar.TarEntry, .TarInputStream

Scans tar archives for resources.

Field Summary

Inherited from org.apache.tools.ant.types.ArchiveScanner:
srcFile

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
fillMapsFromArchive(Resource
the archive to scan.
src
,
String
encoding used to encode file names inside the archive.
encoding
,
Map<String, Resource>
Map (name to resource) of non-directory resources found inside the archive.
fileEntries
,
Map<String, Resource>
Map (name to resource) of non-directory resources found inside the archive that matched all include patterns and didn't match any exclude patterns.
matchFileEntries
,
Map<String, Resource>
Map (name to resource) of directory resources found inside the archive.
dirEntries
,
Map<String, Resource>
Map (name to resource) of directory resources found inside the archive that matched all include patterns and didn't match any exclude patterns.
matchDirEntries
)

Implements abstract org.apache.tools.ant.types.ArchiveScanner.fillMapsFromArchive.

Fills the file and directory maps with resources read from the archive.
Inherited from org.apache.tools.ant.types.ArchiveScanner:
getIncludedDirectoriesgetIncludedDirsCountgetIncludedFilesgetIncludedFilesCountgetResourcegetResourceDirectoriesgetResourceFilesinitmatchscansetEncodingsetErrorOnMissingArchivesetSrcsetSrctrimSeparator

Constructor Detail

TarScannerback to summary
public TarScanner()

Method Detail

fillMapsFromArchiveback to summary
protected void fillMapsFromArchive(Resource src, String encoding, Map<String, Resource> fileEntries, Map<String, Resource> matchFileEntries, Map<String, Resource> dirEntries, Map<String, Resource> matchDirEntries)

Implements abstract org.apache.tools.ant.types.ArchiveScanner.fillMapsFromArchive.

Fills the file and directory maps with resources read from the archive.

Parameters
src:Resource

the archive to scan.

encoding:String

encoding used to encode file names inside the archive.

fileEntries:Map<String, Resource>

Map (name to resource) of non-directory resources found inside the archive.

matchFileEntries:Map<String, Resource>

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<String, Resource>

Map (name to resource) of directory resources found inside the archive.

matchDirEntries:Map<String, Resource>

Map (name to resource) of directory resources found inside the archive that matched all include patterns and didn't match any exclude patterns.