/** Set the config to the compressor used to compress data of this type */ public void setCompressionConfig(CompressionConfig config) { CompressionType type = config.type; compressor = new Compressor(type, config.compressionLevel, config.thresholdFactor(), (int)config.minsize); }