| Modifier and Type | Field and Description |
|---|---|
| private final MessageDigest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | formatIndexLine(OutputStream
the stream the formatter will write line data to o, DiffEntry the DiffEntry to create the FileHeader for ent)Overrides org. Format index line |
| public ObjectId | Returns: the patch id calculated for the provided diff.Should be called after having called one of the format methods |
| protected void | writeHunkHeader(int
within first source aStartLine, int within first source aEndLine, int within second source bStartLine, int within second source bEndLine, String function name of this hunk funcName)Overrides org. Output a hunk header |
| digest | back to summary |
|---|---|
| private final MessageDigest digest | |
| PatchIdDiffFormatter | back to summary |
|---|---|
| public PatchIdDiffFormatter() Initialize a formatter to compute a patch id. | |
| formatIndexLine | back to summary |
|---|---|
| protected void formatIndexLine(OutputStream o, DiffEntry ent) throws IOException Overrides org. Doc from org. Format index line
| |
| getCalulatedPatchId | back to summary |
|---|---|
| public ObjectId getCalulatedPatchId() Should be called after having called one of the format methods
| |
| writeHunkHeader | back to summary |
|---|---|
| protected void writeHunkHeader(int aStartLine, int aEndLine, int bStartLine, int bEndLine, String funcName) throws IOException Overrides org. Doc from org. Output a hunk header
| |