public class SourceFile
extends java.lang.Object
SourceFinder| Constructor and Description |
|---|
SourceFile(SourceFileDataSource dataSource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLineOffset(int offset)
Add a source line byte offset.
|
java.lang.String |
getFullFileName()
Get the full path name of the source file (with directory).
|
java.io.InputStream |
getInputStream()
Get an InputStream on data.
|
java.io.InputStream |
getInputStreamFromOffset(int offset)
Get an InputStream on data starting at given offset.
|
long |
getLastModified() |
int |
getLineOffset(int line)
Get the byte offset in the data for a source line.
|
public SourceFile(SourceFileDataSource dataSource)
dataSource - the SourceFileDataSource object which will provide the data of
the source filepublic java.lang.String getFullFileName()
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStreamFromOffset(int offset)
throws java.io.IOException
offset - the start offsetjava.io.IOExceptionpublic void addLineOffset(int offset)
offset - the byte offset of the next source linepublic int getLineOffset(int line)
line - the line numberpublic long getLastModified()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.