public class PatchIdDiffFormatter extends DiffFormatter
Constructor | Description |
---|---|
PatchIdDiffFormatter() |
Initialize a formatter to compute a patch id.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
formatIndexLine(OutputStream o,
DiffEntry ent) |
|
ObjectId |
getCalulatedPatchId() |
Should be called after having called one of the format methods
|
protected void |
writeHunkHeader(int aStartLine,
int aEndLine,
int bStartLine,
int bEndLine) |
Output a hunk header
|
flush, format, format, format, format, format, format, format, formatGitDiffFirstHeaderLine, getNewPrefix, getOldPrefix, getOutputStream, getPathFilter, getRenameDetector, isDetectRenames, release, scan, scan, scan, setAbbreviationLength, setBinaryFileThreshold, setContext, setDetectRenames, setDiffAlgorithm, setDiffComparator, setNewPrefix, setOldPrefix, setPathFilter, setProgressMonitor, setRepository, toFileHeader, writeAddedLine, writeContextLine, writeLine, writeRemovedLine
public PatchIdDiffFormatter()
public ObjectId getCalulatedPatchId()
protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine) throws IOException
DiffFormatter
writeHunkHeader
in class DiffFormatter
aStartLine
- within first sourceaEndLine
- within first sourcebStartLine
- within second sourcebEndLine
- within second sourceIOException
protected void formatIndexLine(OutputStream o, DiffEntry ent) throws IOException
formatIndexLine
in class DiffFormatter
o
- the stream the formatter will write line data toent
- the DiffEntry to create the FileHeader forIOException
- writing to the supplied stream failed.Copyright © 2018. All rights reserved.