Package org.apache.tools.ant.types
Interface ResourceFactory
- 
- All Known Implementing Classes:
- ArchiveScanner,- DependScanner,- DirectoryScanner,- FileResource,- FTP.FTPDirectoryScanner,- FTPTaskMirrorImpl.FTPDirectoryScanner,- Project,- SourceFileScanner,- TarScanner,- ZipScanner
 
 public interface ResourceFactorythis interface should be implemented by classes (Scanners) needing to deliver information about resources.- Since:
- Ant 1.5.2
 
- 
- 
Method SummaryModifier and Type Method Description ResourcegetResource(java.lang.String name)Query a resource (file, zipentry, ...) by name
 
- 
- 
- 
Method Detail- 
getResourceResource getResource(java.lang.String name) Query a resource (file, zipentry, ...) by name- Parameters:
- name- relative path of the resource about which information is sought. Expects "/" to be used as the directory separator.
- Returns:
- instance of Resource; the exists attribute of Resource will tell whether the sought resource exists
 
 
- 
 
-