| Modifier and Type | Field and Description |
|---|---|
| protected final byte[] | |
| protected LZFChunk | |
| public static final int | |
| public static final int | |
| public static final byte | |
| public static final byte | |
| public static final int | |
| public static final int | |
| public static final int | MAX_CHUNK_LEN
Chunk length is limited by 2-byte length indicator, to 64k |
| public static final int | MAX_HEADER_LEN
Header can be either 7 bytes (compressed) or 5 bytes (uncompressed) long |
| public static final int | MAX_LITERAL
Maximum length of literal run for LZF encoding. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | appendNonCompressed(byte[] plainData, int ptr, int len, byte[] outputBuffer, int outputPtr)
Method for appending specific content as non-compressed chunk, in given buffer. |
| public static int | |
| public int | |
| public static LZFChunk | createCompressed(int origLen, byte[] encData, int encPtr, int encLen)
Factory method for constructing compressed chunk |
| public static LZFChunk | createNonCompressed(byte[] plainData, int ptr, int len)
Factory method for constructing compressed chunk |
| public byte[] | |
| public int | |
| public LZFChunk | |
| public void | |
| public static void | |
| public static void |
| _data | back to summary |
|---|---|
| protected final byte[] _data | |
| _next | back to summary |
|---|---|
| protected LZFChunk _next | |
| BLOCK_TYPE_COMPRESSED | back to summary |
|---|---|
| public static final int BLOCK_TYPE_COMPRESSED | |
| BLOCK_TYPE_NON_COMPRESSED | back to summary |
|---|---|
| public static final int BLOCK_TYPE_NON_COMPRESSED | |
| BYTE_V | back to summary |
|---|---|
| public static final byte BYTE_V | |
| BYTE_Z | back to summary |
|---|---|
| public static final byte BYTE_Z | |
| HEADER_LEN_COMPRESSED | back to summary |
|---|---|
| public static final int HEADER_LEN_COMPRESSED | |
| HEADER_LEN_NOT_COMPRESSED | back to summary |
|---|---|
| public static final int HEADER_LEN_NOT_COMPRESSED | |
| MAX_CHUNK_LEN | back to summary |
|---|---|
| public static final int MAX_CHUNK_LEN Chunk length is limited by 2-byte length indicator, to 64k | |
| MAX_HEADER_LEN | back to summary |
|---|---|
| public static final int MAX_HEADER_LEN Header can be either 7 bytes (compressed) or 5 bytes (uncompressed) long | |
| MAX_LITERAL | back to summary |
|---|---|
| public static final int MAX_LITERAL Maximum length of literal run for LZF encoding. | |
| LZFChunk | back to summary |
|---|---|
| private LZFChunk(byte[] data) | |
| appendCompressedHeader | back to summary |
|---|---|
| public static int appendCompressedHeader(int origLen, int encLen, byte[] headerBuffer, int offset) | |
| appendNonCompressed | back to summary |
|---|---|
| public static int appendNonCompressed(byte[] plainData, int ptr, int len, byte[] outputBuffer, int outputPtr) Method for appending specific content as non-compressed chunk, in given buffer. | |
| appendNonCompressedHeader | back to summary |
|---|---|
| public static int appendNonCompressedHeader(int len, byte[] headerBuffer, int offset) | |
| copyTo | back to summary |
|---|---|
| public int copyTo(byte[] dst, int ptr) | |
| createCompressed | back to summary |
|---|---|
| public static LZFChunk createCompressed(int origLen, byte[] encData, int encPtr, int encLen) Factory method for constructing compressed chunk | |
| createNonCompressed | back to summary |
|---|---|
| public static LZFChunk createNonCompressed(byte[] plainData, int ptr, int len) Factory method for constructing compressed chunk | |
| getData | back to summary |
|---|---|
| public byte[] getData() | |
| length | back to summary |
|---|---|
| public int length() | |
| next | back to summary |
|---|---|
| public LZFChunk next() | |
| setNext | back to summary |
|---|---|
| public void setNext(LZFChunk next) | |
| writeCompressedHeader | back to summary |
|---|---|
| public static void writeCompressedHeader(int origLen, int encLen, OutputStream out, byte[] headerBuffer) throws IOException | |
| writeNonCompressedHeader | back to summary |
|---|---|
| public static void writeNonCompressedHeader(int len, OutputStream out, byte[] headerBuffer) throws IOException | |