OutputStream that encodes data for a git binary patch.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final int | |
| private final OutputStream | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BinaryHunkOutputStream(OutputStream
OutputStream to write the encoded data toCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Flushes and closes this stream, and closes the underlying
|
| private void | |
| public void | flush()
Overrides java. Implements java. Writes any buffered output as a binary patch line to the underlying
|
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| MAX_BYTES | back to summary |
|---|---|
| private static final int MAX_BYTES | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| pos | back to summary |
|---|---|
| private int pos | |
| BinaryHunkOutputStream | back to summary |
|---|---|
| public BinaryHunkOutputStream(OutputStream out) Creates a new
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Flushes and closes this stream, and closes the underlying
| |
| encode | back to summary |
|---|---|
| private void encode(byte[] data, int off, int length) throws IOException | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Writes any buffered output as a binary patch line to the underlying
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |