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()); } }