Package org.eclipse.jgit.util.io
Class BinaryHunkInputStream
java.lang.Object
java.io.InputStream
org.eclipse.jgit.util.io.BinaryHunkInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A stream that decodes git binary patch data on the fly.
- Since:
- 5.12
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private final InputStreamprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
in
-
lineNumber
private int lineNumber -
buffer
private byte[] buffer -
pos
private int pos
-
-
Constructor Details
-
BinaryHunkInputStream
Creates a newBinaryHunkInputStream.- Parameters:
in-InputStreamto read the base-85 encoded patch data from
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
fillBuffer
- Throws:
IOException
-