Java Doc for ArchiveScanner.java in  » Build » ANT » org » apache » tools » ant » types » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.types 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.DirectoryScanner
      org.apache.tools.ant.types.ArchiveScanner

All known Subclasses:   org.apache.tools.ant.types.ZipScanner,  org.apache.tools.ant.types.TarScanner,
ArchiveScanner
abstract public class ArchiveScanner extends DirectoryScanner (Code)
ArchiveScanner 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 archive entries.
since:
   Ant 1.7


Field Summary
protected  FilesrcFile
     The archive file which should be scanned.


Method Summary
abstract protected  voidfillMapsFromArchive(Resource archive, String encoding, Map fileEntries, Map matchFileEntries, Map dirEntries, Map matchDirEntries)
     Fills the file and directory maps with resources read from the archive.
public  String[]getIncludedDirectories()
     Returns the names of the directories which matched at least one of the include patterns and none of the exclude patterns.
public  intgetIncludedDirsCount()
     Override parent implementation.
public  String[]getIncludedFiles()
     Returns the names of the files which matched at least one of the include patterns and none of the exclude patterns.
public  intgetIncludedFilesCount()
     Override parent implementation.
public  ResourcegetResource(String name)
     Get the named Resource.
 IteratorgetResourceDirectories()
     Get the set of Resources that represent directories.
 IteratorgetResourceFiles()
     Get the set of Resources that represent files.
public  voidinit()
     Initialize DirectoryScanner data structures.
public  booleanmatch(String path)
     Matches a jar entry against the includes/excludes list, normalizing the path separator.
public  voidscan()
     Don't scan when we have no zipfile.
public  voidsetEncoding(String encoding)
     Sets encoding of file names.
public  voidsetSrc(File srcFile)
     Sets the srcFile for scanning.
public  voidsetSrc(Resource src)
     Sets the src for scanning.
final protected static  StringtrimSeparator(String s)
     Remove trailing slash if present.
Parameters:
  s - the file name to trim.

Field Detail
srcFile
protected File srcFile(Code)
The archive file which should be scanned.





Method Detail
fillMapsFromArchive
abstract protected void fillMapsFromArchive(Resource archive, String encoding, Map fileEntries, Map matchFileEntries, Map dirEntries, Map matchDirEntries)(Code)
Fills the file and directory maps with resources read from the archive.
Parameters:
  archive - the archive to scan.
Parameters:
  encoding - encoding used to encode file names inside the archive.
Parameters:
  fileEntries - Map (name to resource) of non-directoryresources found inside the archive.
Parameters:
  matchFileEntries - Map (name to resource) of non-directoryresources found inside the archive that matched all includepatterns and didn't match any exclude patterns.
Parameters:
  dirEntries - Map (name to resource) of directoryresources found inside the archive.
Parameters:
  matchDirEntries - Map (name to resource) of directoryresources found inside the archive that matched all includepatterns and didn't match any exclude patterns.



getIncludedDirectories
public String[] getIncludedDirectories()(Code)
Returns the names of the directories which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base directory. the names of the directories which matched at least one of theinclude patterns and none of the exclude patterns.



getIncludedDirsCount
public int getIncludedDirsCount()(Code)
Override parent implementation. count of included directories.
since:
   Ant 1.7



getIncludedFiles
public String[] getIncludedFiles()(Code)
Returns the names of the files which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base directory. the names of the files which matched at least one of theinclude patterns and none of the exclude patterns.



getIncludedFilesCount
public int getIncludedFilesCount()(Code)
Override parent implementation. count of included files.
since:
   Ant 1.7



getResource
public Resource getResource(String name)(Code)
Get the named Resource.
Parameters:
  name - path name of the file sought in the archive the resource
since:
   Ant 1.5.2



getResourceDirectories
Iterator getResourceDirectories()(Code)
Get the set of Resources that represent directories. an Iterator of Resources.
since:
   Ant 1.7



getResourceFiles
Iterator getResourceFiles()(Code)
Get the set of Resources that represent files. an Iterator of Resources.
since:
   Ant 1.7



init
public void init()(Code)
Initialize DirectoryScanner data structures.



match
public boolean match(String path)(Code)
Matches a jar entry against the includes/excludes list, normalizing the path separator.
Parameters:
  path - the (non-null) path name to test for inclusion true if the path should be includedfalse otherwise.



scan
public void scan()(Code)
Don't scan when we have no zipfile.
since:
   Ant 1.7



setEncoding
public void setEncoding(String encoding)(Code)
Sets encoding of file names.
Parameters:
  encoding - the encoding format
since:
   Ant 1.6



setSrc
public void setSrc(File srcFile)(Code)
Sets the srcFile for scanning. This is the jar or zip file that is scanned for matching entries.
Parameters:
  srcFile - the (non-null) archive file name for scanning



setSrc
public void setSrc(Resource src)(Code)
Sets the src for scanning. This is the jar or zip file that is scanned for matching entries.
Parameters:
  src - the (non-null) archive resource



trimSeparator
final protected static String trimSeparator(String s)(Code)
Remove trailing slash if present.
Parameters:
  s - the file name to trim. the trimed file name.



Fields inherited from org.apache.tools.ant.DirectoryScanner
final protected static String[] DEFAULTEXCLUDES(Code)(Java Doc)
protected File basedir(Code)(Java Doc)
protected Vector dirsDeselected(Code)(Java Doc)
protected Vector dirsExcluded(Code)(Java Doc)
protected Vector dirsIncluded(Code)(Java Doc)
protected Vector dirsNotIncluded(Code)(Java Doc)
protected boolean everythingIncluded(Code)(Java Doc)
protected String[] excludes(Code)(Java Doc)
protected Vector filesDeselected(Code)(Java Doc)
protected Vector filesExcluded(Code)(Java Doc)
protected Vector filesIncluded(Code)(Java Doc)
protected Vector filesNotIncluded(Code)(Java Doc)
protected boolean haveSlowResults(Code)(Java Doc)
protected String[] includes(Code)(Java Doc)
protected boolean isCaseSensitive(Code)(Java Doc)
protected FileSelector[] selectors(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.DirectoryScanner
public static boolean addDefaultExclude(String s)(Code)(Java Doc)
public synchronized void addDefaultExcludes()(Code)(Java Doc)
public synchronized void addExcludes(String[] excludes)(Code)(Java Doc)
protected synchronized void clearResults()(Code)(Java Doc)
protected boolean couldHoldIncluded(String name)(Code)(Java Doc)
public synchronized File getBasedir()(Code)(Java Doc)
public static String[] getDefaultExcludes()(Code)(Java Doc)
public synchronized String[] getDeselectedDirectories()(Code)(Java Doc)
public synchronized String[] getDeselectedFiles()(Code)(Java Doc)
public synchronized String[] getExcludedDirectories()(Code)(Java Doc)
public synchronized String[] getExcludedFiles()(Code)(Java Doc)
public synchronized String[] getIncludedDirectories()(Code)(Java Doc)
public synchronized int getIncludedDirsCount()(Code)(Java Doc)
public synchronized String[] getIncludedFiles()(Code)(Java Doc)
public synchronized int getIncludedFilesCount()(Code)(Java Doc)
public synchronized String[] getNotIncludedDirectories()(Code)(Java Doc)
public synchronized String[] getNotIncludedFiles()(Code)(Java Doc)
public synchronized Resource getResource(String name)(Code)(Java Doc)
public synchronized boolean isCaseSensitive()(Code)(Java Doc)
public synchronized boolean isEverythingIncluded()(Code)(Java Doc)
protected boolean isExcluded(String name)(Code)(Java Doc)
public synchronized boolean isFollowSymlinks()(Code)(Java Doc)
protected boolean isIncluded(String name)(Code)(Java Doc)
protected boolean isSelected(String name, File file)(Code)(Java Doc)
public static boolean match(String pattern, String str)(Code)(Java Doc)
protected static boolean match(String pattern, String str, boolean isCaseSensitive)(Code)(Java Doc)
protected static boolean matchPath(String pattern, String str)(Code)(Java Doc)
protected static boolean matchPath(String pattern, String str, boolean isCaseSensitive)(Code)(Java Doc)
protected static boolean matchPatternStart(String pattern, String str)(Code)(Java Doc)
protected static boolean matchPatternStart(String pattern, String str, boolean isCaseSensitive)(Code)(Java Doc)
public static boolean removeDefaultExclude(String s)(Code)(Java Doc)
public static void resetDefaultExcludes()(Code)(Java Doc)
public void scan() throws IllegalStateException(Code)(Java Doc)
protected void scandir(File dir, String vpath, boolean fast)(Code)(Java Doc)
public void setBasedir(String basedir)(Code)(Java Doc)
public synchronized void setBasedir(File basedir)(Code)(Java Doc)
public synchronized void setCaseSensitive(boolean isCaseSensitive)(Code)(Java Doc)
public synchronized void setExcludes(String[] excludes)(Code)(Java Doc)
public synchronized void setFollowSymlinks(boolean followSymlinks)(Code)(Java Doc)
public synchronized void setIncludes(String[] includes)(Code)(Java Doc)
public synchronized void setSelectors(FileSelector[] selectors)(Code)(Java Doc)
protected void slowScan()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.