Package htsjdk.beta.codecs.reads.bam
Class BAMDecoderOptions
java.lang.Object
htsjdk.beta.codecs.reads.bam.BAMDecoderOptions
Decoder options specific to BAM decoders.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet theInflaterFactory
used for these options.boolean
Determine if async IO is enabled for these options.boolean
Determine whether validation of CRC checksums is enabled for these options.setAsyncIO
(boolean asyncIO) Set whether async IO is enable for these options.setInflaterFactory
(InflaterFactory inflaterFactory) Set theInflaterFactory
to use for these options.setValidateCRCChecksums
(boolean validateCRCChecksums) Set whether validation of CRC checksums should be enabled for these options.
-
Constructor Details
-
BAMDecoderOptions
public BAMDecoderOptions()
-
-
Method Details
-
getInflaterFactory
Get theInflaterFactory
used for these options. Defaults toBlockGunzipper.getDefaultInflaterFactory()
.- Returns:
- the
InflaterFactory
used for these options
-
setInflaterFactory
Set theInflaterFactory
to use for these options. Defaults value isBlockGunzipper.getDefaultInflaterFactory()
.- Parameters:
inflaterFactory
- inflater factory to use- Returns:
- updated BAMDecoderOptions
-
isAsyncIO
public boolean isAsyncIO()Determine if async IO is enabled for these options. Defaults toDefaults.USE_ASYNC_IO_READ_FOR_SAMTOOLS
.- Returns:
- true if async IO is enabled for these options
-
setAsyncIO
Set whether async IO is enable for these options. Defaults value isDefaults.USE_ASYNC_IO_READ_FOR_SAMTOOLS
.- Parameters:
asyncIO
- true if async IO should be used, otherwise false- Returns:
- updated BAMDecoderOptions
-
isValidateCRCChecksums
public boolean isValidateCRCChecksums()Determine whether validation of CRC checksums is enabled for these options. Defaults to false.- Returns:
- true if CRC validation is enabled, otherwise false
-
setValidateCRCChecksums
Set whether validation of CRC checksums should be enabled for these options. Defaults value is false.- Parameters:
validateCRCChecksums
- true to enable CRC validation, otherwise false- Returns:
- updated BAMDecoderOptions
-