- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jgit.util.io.BinaryHunkOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class BinaryHunkOutputStream extends OutputStream
AnOutputStreamthat encodes data for a git binary patch.- Since:
- 5.12
-
-
Constructor Summary
Constructors Constructor Description BinaryHunkOutputStream(OutputStream out)Creates a newBinaryHunkOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Flushes and closes this stream, and closes the underlyingOutputStream.voidflush()Writes any buffered output as a binary patch line to the underlyingOutputStreamand flushes that stream, too.voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
BinaryHunkOutputStream
public BinaryHunkOutputStream(OutputStream out)
Creates a newBinaryHunkOutputStream.- Parameters:
out-OutputStreamto write the encoded data to
-
-
Method Detail
-
close
public void close() throws IOExceptionFlushes and closes this stream, and closes the underlyingOutputStream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOExceptionWrites any buffered output as a binary patch line to the underlyingOutputStreamand flushes that stream, too.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
-