OutputStream.
Internally buffers at block size boundaries, flushing only complete blocks to
the OutputStream.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private byte[] | |
| private int | |
| private int | |
| private int | |
| private DeflaterOutputStream | |
| private int | |
| private Deflater | |
| private final CountingOutputStream | |
| private long | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv int | |
| pack-priv int | |
| pack-priv static int | |
| private void | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| 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. cnt)Overrides java. Writes |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| alignBlocks | back to summary |
|---|---|
| private final boolean alignBlocks | |
| blockBuf | back to summary |
|---|---|
| private byte[] blockBuf | |
| blockSize | back to summary |
|---|---|
| private int blockSize | |
| blockStart | back to summary |
|---|---|
| private int blockStart | |
| blockType | back to summary |
|---|---|
| private int blockType | |
| compressor | back to summary |
|---|---|
| private DeflaterOutputStream compressor | |
| cur | back to summary |
|---|---|
| private int cur | |
| deflater | back to summary |
|---|---|
| private Deflater deflater | |
| out | back to summary |
|---|---|
| private final CountingOutputStream out | |
| paddingUsed | back to summary |
|---|---|
| private long paddingUsed | |
| tmp | back to summary |
|---|---|
| private final byte[] tmp | |
| ReftableOutputStream | back to summary |
|---|---|
| pack-priv ReftableOutputStream(OutputStream os, int bs, boolean align) | |
| beginBlock | back to summary |
|---|---|
| pack-priv void beginBlock(byte type) | |
| bytesAvailableInBlock | back to summary |
|---|---|
| pack-priv int bytesAvailableInBlock() | |
| bytesWrittenInBlock | back to summary |
|---|---|
| pack-priv int bytesWrittenInBlock() | |
| computeVarintSize | back to summary |
|---|---|
| pack-priv static int computeVarintSize(long val) | |
| ensureBytesAvailableInBlockBuf | back to summary |
|---|---|
| private void ensureBytesAvailableInBlockBuf(int cnt) | |
| estimatePadBetweenBlocks | back to summary |
|---|---|
| pack-priv int estimatePadBetweenBlocks(int currentBlockSize) | |
| finishFile | back to summary |
|---|---|
| pack-priv void finishFile() throws IOException | |
| flushBlock | back to summary |
|---|---|
| pack-priv void flushBlock() throws IOException | |
| flushFileHeader | back to summary |
|---|---|
| pack-priv void flushFileHeader() throws IOException | |
| padBetweenBlocksToNextBlock | back to summary |
|---|---|
| pack-priv void padBetweenBlocksToNextBlock() throws IOException | |
| paddingUsed | back to summary |
|---|---|
| pack-priv long paddingUsed() | |
| setBlockSize | back to summary |
|---|---|
| pack-priv void setBlockSize(int bs) | |
| size | back to summary |
|---|---|
| pack-priv long size() Get size
| |
| write | back to summary |
|---|---|
| public void write(int b) 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 cnt) Overrides java. Doc from java. Writes
If
If
| |
| writeId | back to summary |
|---|---|
| pack-priv void writeId(ObjectId id) | |
| writeInt16 | back to summary |
|---|---|
| pack-priv void writeInt16(int val) | |
| writeInt24 | back to summary |
|---|---|
| pack-priv void writeInt24(int val) | |
| writeVarint | back to summary |
|---|---|
| pack-priv void writeVarint(long val) | |
| writeVarintString | back to summary |
|---|---|
| pack-priv void writeVarintString(String s) | |
| writeVarintString | back to summary |
|---|---|
| pack-priv void writeVarintString(byte[] msg) | |