public abstract class AbstractDependencyScanner extends java.lang.Object implements IDependencyScanner
protected Object runScan(String file, InputStream is, String encoding); protected abstract LogicalFile createLogicalFile(String file, Object scanMetadata);
Constructor and Description |
---|
AbstractDependencyScanner() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createLogicalName(java.lang.String fileName)
Create a logical name from a file name, for example: /u/user/test/cobol/myfile.cbl
will create logical name MYFILE
|
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 file
|
LogicalFile |
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 file
|
java.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 archive
|
LogicalFile |
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
|
public LogicalFile scan(java.lang.String file, java.lang.String sourceDir) throws java.io.FileNotFoundException
scan
in interface IDependencyScanner
file
- the name of the filesourceDir
- directory where the file can be locatedjava.io.FileNotFoundException
- an exception occurredpublic LogicalFile scan(java.lang.String file, java.lang.String sourceDir, java.lang.String encoding) throws java.io.FileNotFoundException
scan
in interface IDependencyScanner
file
- the name of the filesourceDir
- directory where the file can be locatedencoding
- the encoding to be used to read the content of the filejava.io.FileNotFoundException
- an exception occurredpublic LogicalFile scan(java.lang.String file, java.io.InputStream inputStream)
scan
in interface IDependencyScanner
file
- the name of the fileinputStream
- the file contentpublic LogicalFile scan(java.lang.String file, java.io.InputStream inputStream, java.lang.String encoding)
scan
in interface IDependencyScanner
file
- the name of the fileinputStream
- the file contentencoding
- the encoding to be used to read the content of the filepublic java.util.List<LogicalFile> scanArchive(java.lang.String archive, java.lang.String sourceDir) throws BuildException
scanArchive
in interface IDependencyScanner
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedBuildException
- an exception occurredpublic java.util.List<LogicalFile> scanArchive(java.lang.String archive, java.lang.String sourceDir, java.lang.String encoding) throws BuildException
scanArchive
in interface IDependencyScanner
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedencoding
- the encoding of the file contentBuildException
- an exception occurredpublic LogicalFile scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file) throws BuildException
scanArchivedFile
in interface IDependencyScanner
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedfile
- the name of the fileBuildException
- an exception occurredpublic LogicalFile scanArchivedFile(java.lang.String archive, java.lang.String sourceDir, java.lang.String file, java.lang.String encoding) throws BuildException
scanArchivedFile
in interface IDependencyScanner
archive
- the name of the archivesourceDir
- the directory where the archive can be locatedfile
- the name of the fileencoding
- the encodingBuildException
- an exception occurredpublic java.lang.String createLogicalName(java.lang.String fileName)
fileName
- the name of the file on HFS<IBM Copyright © 2018 IBM Corp. All Rights Reserved.