|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.SourceFile
public class SourceFile
Cached data for a source file. Contains a map of line numbers to byte offsets, for quick searching of source lines.
SourceFinder
Constructor Summary | |
---|---|
SourceFile(SourceFileDataSource dataSource)
Constructor. |
Method Summary | |
---|---|
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. |
int |
getLineOffset(int line)
Get the byte offset in the data for a source line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceFile(SourceFileDataSource dataSource)
dataSource
- the SourceFileDataSource object which will
provide the data of the source fileMethod Detail |
---|
public java.lang.String getFullFileName()
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStreamFromOffset(int offset) throws java.io.IOException
offset
- the start offset
java.io.IOException
public void addLineOffset(int offset)
offset
- the byte offset of the next source linepublic int getLineOffset(int line)
line
- the line number
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |