Package org.eclipse.jgit.patch
Class CombinedHunkHeader
java.lang.Object
org.eclipse.jgit.patch.HunkHeader
org.eclipse.jgit.patch.CombinedHunkHeader
Hunk header for a hunk appearing in a "diff --cc" style patch.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jgit.patch.HunkHeader
HunkHeader.OldImage
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.patch.HunkHeader
endOffset, file, nContext, newLineCount, newStartLine, startOffset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
extractFileLines
(OutputStream[] out) (package private) void
extractFileLines
(StringBuilder sb, String[] text, int[] offsets) Get header for the file this hunk applies to.Get information about the old image mentioned in this hunk.getOldImage
(int nthParent) Get the OldImage data related to the nth ancestor(package private) int
(package private) void
Methods inherited from class org.eclipse.jgit.patch.HunkHeader
copyLine, getBuffer, getEndOffset, getLinesContext, getNewLineCount, getNewStartLine, getStartOffset, skipLine, toEditList, toString
-
Field Details
-
old
-
-
Constructor Details
-
CombinedHunkHeader
CombinedHunkHeader(CombinedFileHeader fh, int offset)
-
-
Method Details
-
getFileHeader
Get header for the file this hunk applies to.- Overrides:
getFileHeader
in classHunkHeader
- Returns:
- header for the file this hunk applies to.
-
getOldImage
Get information about the old image mentioned in this hunk.- Overrides:
getOldImage
in classHunkHeader
- Returns:
- information about the old image mentioned in this hunk.
-
getOldImage
Get the OldImage data related to the nth ancestor- Parameters:
nthParent
- the ancestor to get the old image data of- Returns:
- image data of the requested ancestor.
-
parseHeader
void parseHeader()- Overrides:
parseHeader
in classHunkHeader
-
parseBody
- Overrides:
parseBody
in classHunkHeader
-
extractFileLines
- Overrides:
extractFileLines
in classHunkHeader
- Throws:
IOException
-
extractFileLines
- Overrides:
extractFileLines
in classHunkHeader
-