| java.lang.Object | |
| ↳ | com.atlassian.bitbucket.content.AbstractFileContentCallback |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
If annotations were requested and at least one
line was streamed, this
method will be called before onEnd(FileSummary) to provide blame for the streamed
lines. | |||||||||||
Called once if the file is binary.
| |||||||||||
Ignores the provided line details and returns
false, which will terminate streaming. | |||||||||||
Called before the first
onLine(int, String, boolean). | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.bitbucket.content.FileContentCallback
| |||||||||||
If annotations were requested and at least one line was streamed, this
method will be called before onEnd(FileSummary) to provide blame for the streamed
lines.
| blames | blame for the streamed lines |
|---|
| IOException |
|---|
Called once if the file is binary. None of the other methods will be called.
| IOException |
|---|
Called after the final line, and blame if
requested, has been streamed.
Note: If there were no lines, this method may be called immediately after onStart(FileContext) without
any calls to onLine(int, String, boolean).
| summary | summarizes the file request and the streamed lines |
|---|
| IOException |
|---|
Ignores the provided line details and returns false, which will terminate streaming.
This is inconsistent with other abstract callbacks, like onChange(Change) and
will be changed in the 3.0 release to return true instead. Derived classes which rely on the behaviour
of this current implementation should override this method and return false explicitly.
| lineNumber | the line number of the line in the file |
|---|---|
| line | a truncated line of code. The line character limit can be set at a system level via a system property |
| truncated | where the received line was truncated |
false, until 3.0| IOException | may be thrown by derived classes |
|---|
Called before the first onLine(int, String, boolean).
| context | provides details about the file request for which lines are being streamed |
|---|
| IOException |
|---|