ChunkEncoder implementations, based on criteria
such as "fastest available" or "safe to run anywhere".
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ChunkEncoder | Returns: ChunkEncoder constructedConvenience method, equivalent to:
|
| public static ChunkEncoder | Returns: ChunkEncoder constructedExpected total length of content to compress; only matters
for content that is smaller than maximum chunk size (64k), to optimize
encoding hash tables totalLength)Method to use for getting compressor instance that uses the most optimal available methods for underlying data access. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedConvenience method, equivalent to:
|
| public static ChunkEncoder | Returns: ChunkEncoder constructedExpected total length of content to compress; only matters
for content that is smaller than maximum chunk size (64k), to optimize
encoding hash tables totalLength, BufferRecycler The BufferRecycler instance bufferRecycler)Method to use for getting compressor instance that uses the most optimal available methods for underlying data access. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedFactory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedFactory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedConvenience method, equivalent to:
|
| public static ChunkEncoder | Returns: ChunkEncoder constructedExpected total length of content to compress; only matters
for content that is smaller than maximum chunk size (64k), to optimize
encoding hash tables totalLength)Method that can be used to ensure that a "safe" compressor instance is loaded. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedConvenience method, equivalent to:
|
| public static ChunkEncoder | Returns: ChunkEncoder constructedExpected total length of content to compress; only matters
for content that is smaller than maximum chunk size (64k), to optimize
encoding hash tables totalLength, BufferRecycler The BufferRecycler instance bufferRecycler)Method that can be used to ensure that a "safe" compressor instance is loaded. |
| public static ChunkEncoder | Returns: ChunkEncoder constructedFactory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. |
| public static ChunkEncoder | safeNonAllocatingInstance(int totalLength, BufferRecycler bufferRecycler)
Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. |
| ChunkEncoderFactory | back to summary |
|---|---|
| public ChunkEncoderFactory() | |
| optimalInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalInstance() Convenience method, equivalent to:
| |
| optimalInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalInstance(int totalLength) Method to use for getting compressor instance that uses the most optimal
available methods for underlying data access. It should be safe to call
this method as implementations are dynamically loaded; however, on some
non-standard platforms it may be necessary to either directly load
instances, or use Uses a ThreadLocal soft-referenced BufferRecycler instance.
| |
| optimalInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalInstance(BufferRecycler bufferRecycler) Convenience method, equivalent to:
| |
| optimalInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalInstance(int totalLength, BufferRecycler bufferRecycler) Method to use for getting compressor instance that uses the most optimal
available methods for underlying data access. It should be safe to call
this method as implementations are dynamically loaded; however, on some
non-standard platforms it may be necessary to either directly load
instances, or use
| |
| optimalNonAllocatingInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalNonAllocatingInstance(int totalLength) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. Uses a ThreadLocal soft-referenced BufferRecycler instance.
| |
| optimalNonAllocatingInstance | back to summary |
|---|---|
| public static ChunkEncoder optimalNonAllocatingInstance(int totalLength, BufferRecycler bufferRecycler) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer.
| |
| safeInstance | back to summary |
|---|---|
| public static ChunkEncoder safeInstance() Convenience method, equivalent to:
| |
| safeInstance | back to summary |
|---|---|
| public static ChunkEncoder safeInstance(int totalLength) Method that can be used to ensure that a "safe" compressor instance is loaded. Safe here means that it should work on any and all Java platforms. Uses a ThreadLocal soft-referenced BufferRecycler instance.
| |
| safeInstance | back to summary |
|---|---|
| public static ChunkEncoder safeInstance(BufferRecycler bufferRecycler) Convenience method, equivalent to:
| |
| safeInstance | back to summary |
|---|---|
| public static ChunkEncoder safeInstance(int totalLength, BufferRecycler bufferRecycler) Method that can be used to ensure that a "safe" compressor instance is loaded. Safe here means that it should work on any and all Java platforms.
| |
| safeNonAllocatingInstance | back to summary |
|---|---|
| public static ChunkEncoder safeNonAllocatingInstance(int totalLength) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. Uses a ThreadLocal soft-referenced BufferRecycler instance.
| |
| safeNonAllocatingInstance | back to summary |
|---|---|
| public static ChunkEncoder safeNonAllocatingInstance(int totalLength, BufferRecycler bufferRecycler) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer. | |