Package com.google.gerrit.server.patch
Class PatchFile
java.lang.Object
com.google.gerrit.server.patch.PatchFile
State supporting processing of a single 
Patch instance.- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
PatchFilepublic PatchFile(org.eclipse.jgit.lib.Repository repo, Map<String, FileDiffOutput> modifiedFiles, String fileName) throws IOException- Throws:
- IOException
 
- 
PatchFilepublic PatchFile(org.eclipse.jgit.lib.Repository repo, String fileName, org.eclipse.jgit.lib.ObjectId patchSetCommitId) throws IOException - Throws:
- IOException
 
 
- 
- 
Method Details- 
getLinepublic String getLine(int file, int line) throws IOException, com.google.gerrit.exceptions.NoSuchEntityException Extract a line from the file, as a string.- Parameters:
- file- the file index to extract.
- line- the line number to extract (1 based; 1 is the first line).
- Returns:
- the string version of the file line.
- Throws:
- IOException- the patch or complete file content cannot be read.
- com.google.gerrit.exceptions.NoSuchEntityException
 
 
-