public final class CramHeader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CRAM_HEADER_LENGTH |
static int |
CRAM_ID_LENGTH |
static int |
CRAM_MAGIC_LENGTH |
static int |
CRAM_VERSION_LENGTH |
static byte[] |
MAGIC |
| Constructor and Description |
|---|
CramHeader(CRAMVersion cramVersion,
java.lang.String id)
Create a new
CramHeader object with the specified version and id. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
CRAMVersion |
getCRAMVersion() |
byte[] |
getId() |
int |
hashCode() |
public static final byte[] MAGIC
public static final int CRAM_MAGIC_LENGTH
public static final int CRAM_ID_LENGTH
public static final int CRAM_VERSION_LENGTH
public static final int CRAM_HEADER_LENGTH
public CramHeader(CRAMVersion cramVersion, java.lang.String id)
CramHeader object with the specified version and id.
The id field by default is guaranteed to be byte[20].cramVersion - the CRAM version to assumeid - an identifier of the content associated with this headerpublic byte[] getId()
public CRAMVersion getCRAMVersion()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object