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 InputStream
private int
private 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
-InputStream
to read the base-85 encoded patch data from
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
fillBuffer
- Throws:
IOException
-