Package htsjdk.samtools.util.zip
Class DeflaterFactory
java.lang.Object
htsjdk.samtools.util.zip.DeflaterFactory
Factory for
Deflater
objects used by BlockCompressedOutputStream
.
This class may be extended to provide alternative deflaters (e.g., for improved performance).-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmakeDeflater
(int compressionLevel, boolean gzipCompatible) Returns a deflater object that will be used when writing BAM files.
-
Constructor Details
-
DeflaterFactory
public DeflaterFactory()
-
-
Method Details
-
makeDeflater
Returns a deflater object that will be used when writing BAM files. Subclasses may override to provide their own deflater implementation.- Parameters:
compressionLevel
- the compression level (0-9)gzipCompatible
- if true then use GZIP compatible compression
-