htsjdk.samtools.cram.encoding.external.ExternalEncoding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of htsjdk Show documentation
Show all versions of htsjdk Show documentation
A Java API for high-throughput sequencing data (HTS) formats
package htsjdk.samtools.cram.encoding.external;
import htsjdk.samtools.cram.encoding.CRAMEncoding;
import htsjdk.samtools.cram.io.ITF8;
import htsjdk.samtools.cram.structure.EncodingID;
public abstract class ExternalEncoding extends CRAMEncoding {
protected final int externalBlockContentId;
protected ExternalEncoding(final int externalBlockContentId) {
super(EncodingID.EXTERNAL);
this.externalBlockContentId = externalBlockContentId;
}
@Override
public byte[] toSerializedEncodingParams() {
return ITF8.writeUnsignedITF8(externalBlockContentId);
}
@Override
public String toString() {
return String.format("Content ID: %d", externalBlockContentId);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy