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) voidextractFileLines(OutputStream[] out) (package private) voidextractFileLines(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) voidMethods 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:
getFileHeaderin classHunkHeader- Returns:
- header for the file this hunk applies to.
-
getOldImage
Get information about the old image mentioned in this hunk.- Overrides:
getOldImagein 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:
parseHeaderin classHunkHeader
-
parseBody
- Overrides:
parseBodyin classHunkHeader
-
extractFileLines
- Overrides:
extractFileLinesin classHunkHeader- Throws:
IOException
-
extractFileLines
- Overrides:
extractFileLinesin classHunkHeader
-