@Test public void test_getTagType() { Assert.assertEquals(CompressionHeaderFactory.getTagType(ReadTag.name3BytesToInt("ACi".getBytes())), 'i'); }
static ByteSizeRange getByteSizeRangeOfTagValues(final List<CramCompressionRecord> records, final int tagID) { final byte type = getTagType(tagID); final ByteSizeRange stats = new ByteSizeRange(); for (final CramCompressionRecord record : records) { if (record.tags == null) { continue; } for (final ReadTag tag : record.tags) { if (tag.keyType3BytesAsInt != tagID) { continue; } final int size = getTagValueByteSize(type, tag.getValue()); if (stats.min > size) stats.min = size; if (stats.max < size) stats.max = size; } } return stats; }
static ByteSizeRange getByteSizeRangeOfTagValues(final List<CramCompressionRecord> records, final int tagID) { final byte type = getTagType(tagID); final ByteSizeRange stats = new ByteSizeRange(); for (final CramCompressionRecord record : records) { if (record.tags == null) { continue; } for (final ReadTag tag : record.tags) { if (tag.keyType3BytesAsInt != tagID) { continue; } final int size = getTagValueByteSize(type, tag.getValue()); if (stats.min > size) stats.min = size; if (stats.max < size) stats.max = size; } } return stats; }
final byte type = getTagType(tagID); switch (type) { case 'A':
final byte type = getTagType(tagID); switch (type) { case 'A':