| Access | Constructor and Description |
|---|---|
| public | VanillaChunkEncoder(int
Total encoded length; used for calculating size
of hash table to use totalLength)
|
| protected | VanillaChunkEncoder(int totalLength, boolean bogus)
Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations. |
| public | VanillaChunkEncoder(int
Total encoded length; used for calculating size
of hash table to use totalLength, BufferRecycler The BufferRecycler instance bufferRecycler)
|
| protected | VanillaChunkEncoder(int totalLength, BufferRecycler bufferRecycler, boolean bogus)
Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations. |
| Modifier and Type | Method and Description |
|---|---|
| private final int | |
| private final int | |
| public static VanillaChunkEncoder | |
| public static VanillaChunkEncoder | |
| protected int | Returns: Output pointer after handling content, such thatresult - originalOutPost
is the actual length of compressed chunk (without header)Implements abstract com. |
| VanillaChunkEncoder | back to summary |
|---|---|
public VanillaChunkEncoder(int totalLength)
| |
| VanillaChunkEncoder | back to summary |
|---|---|
| protected VanillaChunkEncoder(int totalLength, boolean bogus) Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations. | |
| VanillaChunkEncoder | back to summary |
|---|---|
public VanillaChunkEncoder(int totalLength, BufferRecycler bufferRecycler)
| |
| VanillaChunkEncoder | back to summary |
|---|---|
| protected VanillaChunkEncoder(int totalLength, BufferRecycler bufferRecycler, boolean bogus) Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations. | |
| _handleTail | back to summary |
|---|---|
| private final int _handleTail(byte[] in, int inPos, int inEnd, byte[] out, int outPos, int literals) | |
| first | back to summary |
|---|---|
| private final int first(byte[] in, int inPos) | |
| nonAllocatingEncoder | back to summary |
|---|---|
| public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength) | |
| nonAllocatingEncoder | back to summary |
|---|---|
| public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) | |
| tryCompress | back to summary |
|---|---|
| protected int tryCompress(byte[] in, int inPos, int inEnd, byte[] out, int outPos) Implements abstract com. Main workhorse method that will try to compress given chunk, and return end position (offset to byte after last included byte)
| |