Package htsjdk.beta.codecs.reads.sam
Class SAMEncoder
java.lang.Object
htsjdk.beta.codecs.reads.sam.SAMEncoder
- All Implemented Interfaces:
HtsEncoder<SAMFileHeader,
,SAMRecord> ReadsEncoder
,Closeable
,AutoCloseable
- Direct Known Subclasses:
SAMEncoderV1_0
InternalAPI
Base class for
BundleResourceType.FMT_READS_SAM
encoders.-
Constructor Summary
ConstructorsConstructorDescriptionSAMEncoder
(Bundle outputBundle, ReadsEncoderOptions readsEncoderOptions) InternalAPI Create a SAM encoder for the given output bundle. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Get a user-friendly display name for this encoder.final String
Get the name of the file format supported by this encoder.Get the outputBundle
for this encoder.Get theReadsEncoderOptions
for this encoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface htsjdk.beta.plugin.HtsEncoder
close, getVersion, setHeader, write
-
Constructor Details
-
SAMEncoder
InternalAPI Create a SAM encoder for the given output bundle. The primary resource in the bundle must have content typeBundleResourceType.CT_ALIGNED_READS
(to find a decoder for a bundle, seeReadsResolver
). NOTE: callers that provide an output stream resource should provide a buffered output stream if buffering is desired, since the encoder does not provide an additional buffering layer.- Parameters:
outputBundle
- outputBundle
to encodereadsEncoderOptions
-ReadsEncoderOptions
to use
-
-
Method Details
-
getFileFormat
Description copied from interface:HtsEncoder
Get the name of the file format supported by this encoder. The format name defines the underlying format handled by this encoder, and also corresponds to the format of the primary bundle resource that is required when encoding (seeBundleResourceType
andBundleResource.getFileFormat()
).- Specified by:
getFileFormat
in interfaceHtsEncoder<SAMFileHeader,
SAMRecord> - Returns:
- the name of the underlying file format handled by this encoder
-
getDisplayName
Description copied from interface:HtsEncoder
Get a user-friendly display name for this encoder.- Specified by:
getDisplayName
in interfaceHtsEncoder<SAMFileHeader,
SAMRecord> - Returns:
- a user-friendly display name for this encoder for use in error and warning messages
-
getOutputBundle
Get the outputBundle
for this encoder.- Returns:
- the output
Bundle
for this encoder
-
getReadsEncoderOptions
Get theReadsEncoderOptions
for this encoder.- Returns:
- the
ReadsEncoderOptions
for this encoder.
-