Package com.ibm.dbb.dependency
Interface IDependencyScanner
-
- All Known Implementing Classes:
AbstractDependencyScanner
,DependencyScanner
,DummyScanner
,ZUnitConfigScanner
public interface IDependencyScanner
Scanner to be used to scan for dependencies of a source file
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogicalFile
scan(java.lang.String file, java.io.InputStream inputStream)
Scan and collect logical dependency of a file.LogicalFile
scan(java.lang.String file, java.io.InputStream inputStream, java.lang.String encoding)
Scan and collect logical dependency of a fileLogicalFile
scan(java.lang.String file, java.lang.String sourceDir)
Scan and collect logical dependency of a file.LogicalFile
scan(java.lang.String file, java.lang.String sourceDir, java.lang.String encoding)
Scan and collect logical dependency of a filejava.util.List<LogicalFile>
scanArchive(java.lang.String archive, java.lang.String sourceDir)
Scan and collect logical dependencies from an archive.java.util.List<LogicalFile>
scanArchive(java.lang.String archive, java.lang.String sourceDir, java.lang.String encoding)
Scan and collect logical dependencies from an archiveLogicalFile
scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file)
Scan and collect the logical dependency from an archived file.LogicalFile
scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file, java.lang.String encoding)
Scan and collect the logical dependency from an archived file
-
-
-
Method Detail
-
scan
LogicalFile scan(java.lang.String file, java.lang.String sourceDir) throws java.io.FileNotFoundException
Scan and collect logical dependency of a file. Assumes encoding is IBM-1047.- Parameters:
file
- the name of the filesourceDir
- the directory where the file can be located- Returns:
- scan
- Throws:
java.io.FileNotFoundException
- an exception occurred
-
scan
LogicalFile scan(java.lang.String file, java.lang.String sourceDir, java.lang.String encoding) throws java.io.FileNotFoundException
Scan and collect logical dependency of a file- Parameters:
file
- the name of the filesourceDir
- the directory where the file can be locatedencoding
- the encoding to be used to read the content of the file- Returns:
- scan
- Throws:
java.io.FileNotFoundException
- an exception occurred
-
scan
LogicalFile scan(java.lang.String file, java.io.InputStream inputStream)
Scan and collect logical dependency of a file. Assumes encoding is IBM-1047.- Parameters:
file
- the name of the fileinputStream
- inputStream the file content- Returns:
- scan
-
scan
LogicalFile scan(java.lang.String file, java.io.InputStream inputStream, java.lang.String encoding)
Scan and collect logical dependency of a file- Parameters:
file
- the name of the fileinputStream
- inputStream the file contentencoding
- the encoding of the file content- Returns:
- scan
-
scanArchive
java.util.List<LogicalFile> scanArchive(java.lang.String archive, java.lang.String sourceDir, java.lang.String encoding) throws BuildException
Scan and collect logical dependencies from an archive- Parameters:
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedencoding
- the encoding- Returns:
- scanArchive
- Throws:
BuildException
- an exception occurred
-
scanArchive
java.util.List<LogicalFile> scanArchive(java.lang.String archive, java.lang.String sourceDir) throws BuildException
Scan and collect logical dependencies from an archive. Assumes encoding is IBM-1047.- Parameters:
archive
- the name of the archivesourceDir
- the directory where the archive can be located- Returns:
- scanArchive
- Throws:
BuildException
- an exception occurred
-
scanArchivedFile
LogicalFile scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file) throws BuildException
Scan and collect the logical dependency from an archived file. Assumes encoding is IBM-1047.- Parameters:
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedfile
- the name of the file- Returns:
- scanArchivedFile
- Throws:
BuildException
- an exception occurred
-
scanArchivedFile
LogicalFile scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file, java.lang.String encoding) throws BuildException
Scan and collect the logical dependency from an archived file- Parameters:
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedfile
- the name of the fileencoding
- the encoding- Returns:
- scanArchivedFile
- Throws:
BuildException
- an exception occurred
-
-