public class DeflateExecutionCompressor extends ExecutorCompressor
| Constructor and Description |
|---|
DeflateExecutionCompressor(java.util.concurrent.Executor executor,
ByteTracker tracker,
int level)
Deprecated.
|
DeflateExecutionCompressor(java.util.concurrent.Executor executor,
int level)
Creates a new compressor.
|
| Modifier and Type | Method and Description |
|---|---|
protected CompressionResult |
immediateCompress(CloseableByteSource source,
ByteStorage storage)
Immediately compresses a source.
|
compresspublic DeflateExecutionCompressor(java.util.concurrent.Executor executor,
int level)
executor - the executor to run deflation taskslevel - the compression level@Deprecated
public DeflateExecutionCompressor(java.util.concurrent.Executor executor,
ByteTracker tracker,
int level)
protected CompressionResult immediateCompress(CloseableByteSource source, ByteStorage storage) throws java.lang.Exception
ExecutorCompressorimmediateCompress in class ExecutorCompressorsource - the source to compressstorage - a byte storage where the compressor can obtain data sources fromjava.lang.Exception - failed to compress