| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final LZ77Compressor | |
| private final Deque | |
| private boolean | |
| private static final int | |
| private static final int | |
| private final byte[] | |
| private final OutputStream | |
| private final Deque |
| Access | Constructor and Description |
|---|---|
| public | BlockLZ4CompressorOutputStream(final OutputStream
An OutputStream to read compressed data from os)Creates a new LZ4 output stream. |
| public | BlockLZ4CompressorOutputStream(final OutputStream
An OutputStream to read compressed data from os, final Parameters The parameters to use for LZ77 compression. params)Creates a new LZ4 output stream. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | close()
Overrides java. Implements java. |
| public static Parameters. | Returns: a builder correctly configured for the LZ4 algorithmReturns a builder correctly configured for the LZ4 algorithm. |
| private byte[] | |
| private void | |
| public void | finish()
Compresses all remaining data and writes it to the stream, doesn't close the underlying stream. |
| public void | prefill(final byte[]
the data to fill the window with. data, final int offset of real data into the array off, final int amount of data len)Adds some initial data to fill the window with. |
| private void | |
| private void | |
| private void | |
| public void | write(final byte[]
the data. data, final int the start offset in the data. off, final int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(final int
the b)byte.Implements abstract java. |
| private BlockLZ4CompressorOutputStream. | |
| private void | |
| private void |
| compressor | back to summary |
|---|---|
| private final LZ77Compressor compressor | |
| expandedBlocks | back to summary |
|---|---|
| private final Deque<byte[]> expandedBlocks | |
| finished | back to summary |
|---|---|
| private boolean finished | |
| MIN_BACK_REFERENCE_LENGTH | back to summary |
|---|---|
| private static final int MIN_BACK_REFERENCE_LENGTH | |
| MIN_OFFSET_OF_LAST_BACK_REFERENCE | back to summary |
|---|---|
| private static final int MIN_OFFSET_OF_LAST_BACK_REFERENCE | |
| oneByte | back to summary |
|---|---|
| private final byte[] oneByte | |
| os | back to summary |
|---|---|
| private final OutputStream os | |
| pairs | back to summary |
|---|---|
| private final Deque<BlockLZ4CompressorOutputStream. | |
| BlockLZ4CompressorOutputStream | back to summary |
|---|---|
| public BlockLZ4CompressorOutputStream(final OutputStream os) Creates a new LZ4 output stream.
| |
| BlockLZ4CompressorOutputStream | back to summary |
|---|---|
| public BlockLZ4CompressorOutputStream(final OutputStream os, final Parameters params) Creates a new LZ4 output stream.
| |
| addBackReference | back to summary |
|---|---|
| private void addBackReference(final LZ77Compressor. | |
| addLiteralBlock | back to summary |
|---|---|
| private void addLiteralBlock(final LZ77Compressor. | |
| clearUnusedBlocks | back to summary |
|---|---|
| private void clearUnusedBlocks() | |
| clearUnusedBlocksAndPairs | back to summary |
|---|---|
| private void clearUnusedBlocksAndPairs() | |
| clearUnusedPairs | back to summary |
|---|---|
| private void clearUnusedPairs() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| createParameterBuilder | back to summary |
|---|---|
| public static Parameters. Returns a builder correctly configured for the LZ4 algorithm.
| |
| expand | back to summary |
|---|---|
| private byte[] expand(final int offset, final int length) | |
| expandFromList | back to summary |
|---|---|
| private void expandFromList(final byte[] expanded, final int offset, final int length) | |
| finish | back to summary |
|---|---|
| public void finish() throws IOException Compresses all remaining data and writes it to the stream, doesn't close the underlying stream.
| |
| prefill | back to summary |
|---|---|
| public void prefill(final byte[] data, final int off, final int len) Adds some initial data to fill the window with.
| |
| recordBackReference | back to summary |
|---|---|
| private void recordBackReference(final LZ77Compressor. | |
| recordLiteral | back to summary |
|---|---|
| private void recordLiteral(final byte[] b) | |
| rewriteLastPairs | back to summary |
|---|---|
| private void rewriteLastPairs() | |
| write | back to summary |
|---|---|
| public void write(final byte[] data, final int off, final int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| writeBlocksAndReturnUnfinishedPair | back to summary |
|---|---|
| private BlockLZ4CompressorOutputStream. | |
| writeFinalLiteralBlock | back to summary |
|---|---|
| private void writeFinalLiteralBlock() throws IOException | |
| writeWritablePairs | back to summary |
|---|---|
| private void writeWritablePairs(final int lengthOfBlocksAfterLastPair) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private final Deque | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | |
| private int | |
| pack-priv boolean | |
| pack-priv boolean | |
| private boolean | |
| pack-priv int | |
| private static int | |
| private int | |
| private void | |
| private void | |
| pack-priv void | |
| private BlockLZ4CompressorOutputStream. | |
| private static void | |
| pack-priv void |
| brLength | back to summary |
|---|---|
| private int brLength | |
| brOffset | back to summary |
|---|---|
| private int brOffset | |
| literalLength | back to summary |
|---|---|
| private int literalLength | |
| literals | back to summary |
|---|---|
| private final Deque<byte[]> literals | |
| written | back to summary |
|---|---|
| private boolean written | |
| Pair | back to summary |
|---|---|
| pack-priv Pair() | |
| addLiteral | back to summary |
|---|---|
| pack-priv byte[] addLiteral(final LZ77Compressor. | |
| backReferenceLength | back to summary |
|---|---|
| private int backReferenceLength() | |
| canBeWritten | back to summary |
|---|---|
| pack-priv boolean canBeWritten(final int lengthOfBlocksAfterThisPair) | |
| hasBackReference | back to summary |
|---|---|
| pack-priv boolean hasBackReference() | |
| hasBeenWritten | back to summary |
|---|---|
| private boolean hasBeenWritten() | |
| length | back to summary |
|---|---|
| pack-priv int length() | |
| lengths | back to summary |
|---|---|
| private static int lengths(final int litLength, final int brLength) | |
| literalLength | back to summary |
|---|---|
| private int literalLength() | |
| prependLiteral | back to summary |
|---|---|
| private void prependLiteral(final byte[] data) | |
| prependTo | back to summary |
|---|---|
| private void prependTo(final BlockLZ4CompressorOutputStream. | |
| setBackReference | back to summary |
|---|---|
| pack-priv void setBackReference(final LZ77Compressor. | |
| splitWithNewBackReferenceLengthOf | back to summary |
|---|---|
| private BlockLZ4CompressorOutputStream. | |
| writeLength | back to summary |
|---|---|
| private static void writeLength(int length, final OutputStream out) throws IOException | |
| writeTo | back to summary |
|---|---|
| pack-priv void writeTo(final OutputStream out) throws IOException | |