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

public Class ZipScanner

extends ArchiveScanner
Class Inheritance
Imports
java.io.File, .IOException, java.util.Map, java.util.zip.ZipException, org.apache.tools.ant.BuildException, org.apache.tools.ant.types.resources.FileProvider, .ZipResource, org.apache.tools.ant.util.StreamUtils, org.apache.tools.zip.ZipFile

Scans zip 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

ZipScannerback to summary
public ZipScanner()

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.

Annotations
@Override