public class BinaryHunkOutputStream extends OutputStream
OutputStream that encodes data for a git binary patch.| Constructor and Description |
|---|
BinaryHunkOutputStream(OutputStream out)
Creates a new
BinaryHunkOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flushes and closes this stream, and closes the underlying
OutputStream. |
void |
flush()
Writes any buffered output as a binary patch line to the underlying
OutputStream and flushes that stream, too. |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writepublic BinaryHunkOutputStream(OutputStream out)
BinaryHunkOutputStream.out - OutputStream to write the encoded data topublic void close()
throws IOException
OutputStream.close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
OutputStream and flushes that stream, too.flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2021 Eclipse JGit Project. All rights reserved.