Package org.jacoco.report
Interface ISourceFileLocator
-
- All Known Implementing Classes:
AntFilesLocator,AntResourcesLocator,DirectorySourceFileLocator,InputStreamSourceFileLocator,MultiSourceFileLocator,ReportSupport.NoSourceLocator,ReportSupport.SourceFileCollection
public interface ISourceFileLocatorInterface to look-up source files that will be included with the report.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.ReadergetSourceFile(java.lang.String packageName, java.lang.String fileName)Tries to locate the given source file and opens a reader with the appropriate encoding.intgetTabWidth()Returns number of blank characters that represent a tab in source code.
-
-
-
Method Detail
-
getSourceFile
java.io.Reader getSourceFile(java.lang.String packageName, java.lang.String fileName) throws java.io.IOExceptionTries to locate the given source file and opens a reader with the appropriate encoding.- Parameters:
packageName- VM name of the packagefileName- name of the source file- Returns:
- reader if the file could be located,
nullotherwise - Throws:
java.io.IOException- in case of problems while opening the file
-
getTabWidth
int getTabWidth()
Returns number of blank characters that represent a tab in source code.- Returns:
- tab width as number of blanks
-
-