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) |
write
public BinaryHunkOutputStream(OutputStream out)
BinaryHunkOutputStream
.out
- OutputStream
to write the encoded data topublic void close() throws IOException
OutputStream
.close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
OutputStream
and flushes that stream, too.flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
Copyright © 2021 Eclipse JGit Project. All rights reserved.