Class CramHeader


  • public final class CramHeader
    extends Object
    A CRAM file header, including the file format definition (including CRAM version and content id), and the SAMFileHeader.
    • Field Detail

      • MAGIC

        public static final byte[] MAGIC
      • CRAM_MAGIC_LENGTH

        public static final int CRAM_MAGIC_LENGTH
      • CRAM_HEADER_LENGTH

        public static final int CRAM_HEADER_LENGTH
    • Constructor Detail

      • CramHeader

        public CramHeader​(CRAMVersion cramVersion,
                          String id)
        Create a new CramHeader object with the specified version and id. The id field by default is guaranteed to be byte[20].
        Parameters:
        cramVersion - the CRAM version to assume
        id - an identifier of the content associated with this header
    • Method Detail

      • getId

        public byte[] getId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object