public class PatchIdDiffFormatter extends DiffFormatter
| Constructor and Description |
|---|
PatchIdDiffFormatter()
Initialize a formatter to compute a patch id.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
formatIndexLine(java.io.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, 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, writeRemovedLinepublic PatchIdDiffFormatter()
public ObjectId getCalulatedPatchId()
protected void writeHunkHeader(int aStartLine,
int aEndLine,
int bStartLine,
int bEndLine)
throws java.io.IOException
DiffFormatterwriteHunkHeader in class DiffFormatteraStartLine - within first sourceaEndLine - within first sourcebStartLine - within second sourcebEndLine - within second sourcejava.io.IOExceptionprotected void formatIndexLine(java.io.OutputStream o,
DiffEntry ent)
throws java.io.IOException
formatIndexLine in class DiffFormattero - the stream the formatter will write line data toent - the DiffEntry to create the FileHeader forjava.io.IOException - writing to the supplied stream failed.Copyright © 2012. All Rights Reserved.