makeCompressorById
fn
Compressor makeCompressorById(string formatId, CompressionOptions opts, string providerName = null)Create a streaming compressor for a string-identified custom format.
Parameters
formatId | The format identifier string (e.g., "gzip", "bzip2"). |
opts | Compression options. |
providerName | Optional full provider name (e.g., "ddn-gzip"). If null, the highest priority provider is selected. |
Returns
A new Compressor instance.
Throws
CompressionError if no suitable provider is found or if the provider
does not implement compression.