edu.umd.cs.findbugs.ba
public class SourceFile extends Object
See Also: SourceFinder
Constructor Summary | |
---|---|
SourceFile(SourceFileDataSource dataSource)
Constructor.
|
Method Summary | |
---|---|
void | addLineOffset(int offset)
Add a source line byte offset.
|
String | getFullFileName()
Get the full path name of the source file (with directory). |
InputStream | getInputStream()
Get an InputStream on data.
|
InputStream | getInputStreamFromOffset(int offset)
Get an InputStream on data starting at given offset.
|
int | getLineOffset(int line)
Get the byte offset in the data for a source line.
|
Parameters: dataSource the SourceFileDataSource object which will provide the data of the source file
Parameters: offset the byte offset of the next source line
Returns: an InputStream on the data in the source file, starting from given offset
Parameters: offset the start offset
Returns: an InputStream on the data in the source file, starting at the given offset
Parameters: line the line number
Returns: the byte offset in the file's data for the line, or -1 if the line is not valid