|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.tools.ant.DirectoryScanner
|
+--org.apache.tools.ant.types.ZipScanner
ZipScanner accesses the pattern matching algorithm in DirectoryScanner, which are protected methods that can only be accessed by subclassing. This implementation of FileScanner defines getIncludedFiles to return the matching Zip entries.
| Field Summary | |
protected java.io.File |
srcFile
The zip file which should be scanned. |
| Fields inherited from class org.apache.tools.ant.DirectoryScanner |
basedir, DEFAULTEXCLUDES, dirsDeselected, dirsExcluded, dirsIncluded, dirsNotIncluded, everythingIncluded, excludes, filesDeselected, filesExcluded, filesIncluded, filesNotIncluded, haveSlowResults, includes, isCaseSensitive, selectors |
| Constructor Summary | |
ZipScanner()
|
|
| Method Summary | |
java.lang.String[] |
getIncludedDirectories()
Returns the names of the directories which matched at least one of the include patterns and none of the exclude patterns. |
java.lang.String[] |
getIncludedFiles()
Returns the names of the files which matched at least one of the include patterns and none of the exclude patterns. |
Resource |
getResource(java.lang.String name)
Get the named resource |
void |
init()
Initialize DirectoryScanner data structures. |
boolean |
match(java.lang.String path)
Matches a jar entry against the includes/excludes list, normalizing the path separator. |
void |
setEncoding(java.lang.String encoding)
Sets encoding of file names. |
void |
setSrc(java.io.File srcFile)
Sets the srcFile for scanning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.File srcFile
| Constructor Detail |
public ZipScanner()
| Method Detail |
public void setSrc(java.io.File srcFile)
srcFile - the (non-null) zip file name for scanningpublic void setEncoding(java.lang.String encoding)
public java.lang.String[] getIncludedFiles()
getIncludedFiles in interface FileScannergetIncludedFiles in class DirectoryScannerpublic java.lang.String[] getIncludedDirectories()
getIncludedDirectories in interface FileScannergetIncludedDirectories in class DirectoryScannerpublic void init()
public boolean match(java.lang.String path)
path - the (non-null) path name to test for inclusion
true if the path should be included
false otherwise.public Resource getResource(java.lang.String name)
DirectoryScanner
getResource in interface ResourceFactorygetResource in class DirectoryScannername - path name of the file sought in the archive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||