Package org.eclipse.jgit.util.io
Class BinaryHunkInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.jgit.util.io.BinaryHunkInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class BinaryHunkInputStream extends java.io.InputStreamA stream that decodes git binary patch data on the fly.- Since:
- 5.12
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bufferprivate java.io.InputStreaminprivate intlineNumberprivate intpos
-
Constructor Summary
Constructors Constructor Description BinaryHunkInputStream(java.io.InputStream in)Creates a newBinaryHunkInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voidfillBuffer()intread()intread(byte[] b, int off, int len)
-
-
-
Constructor Detail
-
BinaryHunkInputStream
public BinaryHunkInputStream(java.io.InputStream in)
Creates a newBinaryHunkInputStream.- Parameters:
in-InputStreamto read the base-85 encoded patch data from
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
fillBuffer
private void fillBuffer() throws java.io.IOException- Throws:
java.io.IOException
-
-