public class BinaryTagCodec
extends java.lang.Object
| Constructor and Description |
|---|
BinaryTagCodec(BinaryCodec binaryCodec)
For writing tags.
|
| Modifier and Type | Method and Description |
|---|---|
static SAMBinaryTagAndValue |
readTags(byte[] binaryRep,
int offset,
int length,
ValidationStringency validationStringency)
Convert tags from little-endian disk representation to in-memory representation.
|
void |
writeTag(short tag,
java.lang.Object value,
boolean isUnsignedArray)
Write the given tag name and value to disk.
|
public BinaryTagCodec(BinaryCodec binaryCodec)
binaryCodec - where to write the file rep of the tagspublic void writeTag(short tag,
java.lang.Object value,
boolean isUnsignedArray)
public static SAMBinaryTagAndValue readTags(byte[] binaryRep, int offset, int length, ValidationStringency validationStringency)
binaryRep - Byte buffer containing file representation of tags.offset - Where in binaryRep tags start.length - How many bytes in binaryRep are tag storage.