Interface FileApi
- 
- All Known Implementing Classes:
- FileApi.NotImplemented
 
 public interface FileApi
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classFileApi.BlameRequeststatic classFileApi.DiffRequeststatic classFileApi.NotImplementedA default implementation which allows source compatibility when adding new methods to the interface.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description FileApi.BlameRequestblameRequest()Creates a request to retrieve the blame information.BinaryResultcontent()DiffInfodiff()Diff against the revision's parent version of the file.DiffInfodiff(int parent)DiffInfodiff(String base)FileApi.DiffRequestdiffRequest()Creates a request to retrieve the diff.voidsetReviewed(boolean reviewed)Set the file reviewed or not reviewed
 
- 
- 
- 
Method Detail- 
contentBinaryResult content() throws RestApiException - Throws:
- RestApiException
 
 - 
diffDiffInfo diff() throws RestApiException Diff against the revision's parent version of the file.- Throws:
- RestApiException
 
 - 
diffDiffInfo diff(String base) throws RestApiException - Parameters:
- base- revision id of the revision to be used as the diff base
- Throws:
- RestApiException
 
 - 
diffDiffInfo diff(int parent) throws RestApiException - Parameters:
- parent- 1-based parent number to diff against
- Throws:
- RestApiException
 
 - 
diffRequestFileApi.DiffRequest diffRequest() throws RestApiException Creates a request to retrieve the diff. On the returned request formatting options for the diff can be set.- Throws:
- RestApiException
 
 - 
setReviewedvoid setReviewed(boolean reviewed) throws RestApiExceptionSet the file reviewed or not reviewed- Throws:
- RestApiException
 
 - 
blameRequestFileApi.BlameRequest blameRequest() throws RestApiException Creates a request to retrieve the blame information. On the returned request formatting options for the blame request can be set.- Throws:
- RestApiException
 
 
- 
 
-