Package htsjdk.samtools.util.zip
Class DeflaterFactory
- java.lang.Object
-
- htsjdk.samtools.util.zip.DeflaterFactory
-
public class DeflaterFactory extends Object
Factory forDeflater
objects used byBlockCompressedOutputStream
. This class may be extended to provide alternative deflaters (e.g., for improved performance).
-
-
Constructor Summary
Constructors Constructor Description DeflaterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Deflater
makeDeflater(int compressionLevel, boolean gzipCompatible)
Returns a deflater object that will be used when writing BAM files.
-
-
-
Method Detail
-
makeDeflater
public Deflater makeDeflater(int compressionLevel, boolean gzipCompatible)
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
-
-