TagData getDataTag() throws IOException { if (dataTag == null) { dataTag = (TagData) tagMap.get(tagid(data_ref, TagEnum.COMPRESSED.getCode())); if (dataTag == null) throw new IllegalStateException("TagCompress not found for " + detail()); dataTag.used = true; } return dataTag; }
TagData getDataTag() throws IOException { if (dataTag == null) { dataTag = (TagData) tagMap.get(tagid(data_ref, TagEnum.COMPRESSED.getCode())); if (dataTag == null) throw new IllegalStateException("TagCompress not found for " + detail()); dataTag.used = true; } return dataTag; }
TagData getDataTag() throws IOException { if (dataTag == null) { dataTag = (TagData) tagMap.get(tagid(data_ref, TagEnum.COMPRESSED.getCode())); if (dataTag == null) throw new IllegalStateException("TagCompress not found for " + detail()); dataTag.used = true; } return dataTag; }
List<TagLinkedBlock> getLinkedDataBlocks() throws IOException { if (linkedDataBlocks == null) { linkedDataBlocks = new ArrayList<>(); if (debugLinked) System.out.println(" TagData readLinkTags " + detail()); short next = link_ref; // (short) (link_ref & 0x3FFF); while (next != 0) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(next, TagEnum.LINKED.getCode())); if (tag == null) throw new IllegalStateException("TagLinkedBlock not found for " + detail()); tag.used = true; tag.read2(num_blk, linkedDataBlocks); next = tag.next_ref; // (short) (tag.next_ref & 0x3FFF); } } return linkedDataBlocks; }
List<TagLinkedBlock> getLinkedDataBlocks() throws IOException { if (linkedDataBlocks == null) { linkedDataBlocks = new ArrayList<TagLinkedBlock>(); if (debugLinked) System.out.println(" TagData readLinkTags " + detail()); short next = link_ref; // (short) (link_ref & 0x3FFF); while (next != 0) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(next, TagEnum.LINKED.getCode())); if (tag == null) throw new IllegalStateException("TagLinkedBlock not found for " + detail()); tag.used = true; tag.read2(num_blk, linkedDataBlocks); next = tag.next_ref; // (short) (tag.next_ref & 0x3FFF); } } return linkedDataBlocks; }
List<TagLinkedBlock> getLinkedDataBlocks() throws IOException { if (linkedDataBlocks == null) { linkedDataBlocks = new ArrayList<TagLinkedBlock>(); if (debugLinked) System.out.println(" TagData readLinkTags " + detail()); short next = link_ref; // (short) (link_ref & 0x3FFF); while (next != 0) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(next, TagEnum.LINKED.getCode())); if (tag == null) throw new IllegalStateException("TagLinkedBlock not found for " + detail()); tag.used = true; tag.read2(num_blk, linkedDataBlocks); next = tag.next_ref; // (short) (tag.next_ref & 0x3FFF); } } return linkedDataBlocks; }
private void read2(int nb, List<TagLinkedBlock> dataBlocks) throws IOException { raf.seek(offset); next_ref = raf.readShort(); block_ref = new short[nb]; for (int i = 0; i < nb; i++) { block_ref[i] = raf.readShort(); if (block_ref[i] == 0) break; n++; } if (debugLinked) System.out.println(" TagLinkedBlock read2 " + detail()); for (int i = 0; i < n; i++) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(block_ref[i], TagEnum.LINKED.getCode())); tag.used = true; dataBlocks.add(tag); if (debugLinked) System.out.println(" Linked data= " + tag.detail()); } }
void read2(int nb, List<TagLinkedBlock> dataBlocks) throws IOException { raf.seek(offset); next_ref = raf.readShort(); block_ref = new short[nb]; for (int i = 0; i < nb; i++) { block_ref[i] = raf.readShort(); if (block_ref[i] == 0) break; n++; } if (debugLinked) System.out.println(" TagLinkedBlock read2 " + detail()); for (int i = 0; i < n; i++) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(block_ref[i], TagEnum.LINKED.getCode())); tag.used = true; dataBlocks.add(tag); if (debugLinked) System.out.println(" Linked data= " + tag.detail()); } }
void read2(int nb, List<TagLinkedBlock> dataBlocks) throws IOException { raf.seek(offset); next_ref = raf.readShort(); block_ref = new short[nb]; for (int i = 0; i < nb; i++) { block_ref[i] = raf.readShort(); if (block_ref[i] == 0) break; n++; } if (debugLinked) System.out.println(" TagLinkedBlock read2 " + detail()); for (int i = 0; i < n; i++) { TagLinkedBlock tag = (TagLinkedBlock) tagMap.get(tagid(block_ref[i], TagEnum.LINKED.getCode())); tag.used = true; dataBlocks.add(tag); if (debugLinked) System.out.println(" Linked data= " + tag.detail()); } }
data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode())); if (null != data) { data.used = true;
data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode())); if (null != data) { data.used = true;
data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode())); if (null != data) { data.used = true;
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode())); if (tag == null) { log.warn("Image Group "+group.tag()+" missing NT tag");
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode())); if (tag == null) { log.warn("Image Group "+group.tag()+" missing NT tag");
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode())); if (tag == null) { log.warn("Image Group "+group.tag()+" missing NT tag");
throw new IllegalStateException(); TagNumberType nt = (TagNumberType) tagMap.get(tagid(dim.nt_ref, TagEnum.NT.getCode())); if (null == nt) throw new IllegalStateException();
throw new IllegalStateException(); TagNumberType nt = (TagNumberType) tagMap.get(tagid(dim.nt_ref, TagEnum.NT.getCode())); if (null == nt) throw new IllegalStateException();
throw new IllegalStateException(); TagNumberType nt = (TagNumberType) tagMap.get(tagid(dim.nt_ref, TagEnum.NT.getCode())); if (null == nt) throw new IllegalStateException();