java.lang.Object
org.eclipse.jgit.patch.BinaryHunk
Part of a "GIT binary patch" to describe the pre-image or post-image
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of information stored in a binary hunk. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the byte array holding this hunk's patch script.intGet offset one past the end of the hunk ingetBuffer().Get header for the file this hunk applies to.intgetSize()Get inflated size of this hunk's data.intGet offset the start of this hunk ingetBuffer().getType()Get type of this binary hunk.
-
Method Details
-
getFileHeader
Get header for the file this hunk applies to.- Returns:
- header for the file this hunk applies to.
-
getBuffer
public byte[] getBuffer()Get the byte array holding this hunk's patch script.- Returns:
- the byte array holding this hunk's patch script.
-
getStartOffset
public int getStartOffset()Get offset the start of this hunk ingetBuffer().- Returns:
- offset the start of this hunk in
getBuffer().
-
getEndOffset
public int getEndOffset()Get offset one past the end of the hunk ingetBuffer().- Returns:
- offset one past the end of the hunk in
getBuffer().
-
getType
Get type of this binary hunk.- Returns:
- type of this binary hunk.
-
getSize
public int getSize()Get inflated size of this hunk's data.- Returns:
- inflated size of this hunk's data.
-