private Attributes findNextSiblingRecord(Attributes dcmObject, DicomDirReader reader) { try { return reader.findNextDirectoryRecordInUse(dcmObject, true); } catch (IOException e) { LOGGER.error("Cannot read next DICOMDIR entry!", e); //$NON-NLS-1$ } return null; }
private void list(Attributes rec, StringBuilder index) throws IOException { int indexLen = index.length(); int i = 1; while (rec != null) { index.append(i++).append('.'); list(heading(rec, index), rec); list(inUse ? in.findLowerDirectoryRecordInUse(rec, false) : in.readLowerDirectoryRecord(rec), index); rec = inUse ? in.findNextDirectoryRecordInUse(rec, false) : in.readNextDirectoryRecord(rec); index.setLength(indexLen); }; }
private void list(Attributes rec, StringBuilder index) throws IOException { int indexLen = index.length(); int i = 1; while (rec != null) { index.append(i++).append('.'); list(heading(rec, index), rec); list(inUse ? in.findLowerDirectoryRecordInUse(rec, false) : in.readLowerDirectoryRecord(rec), index); rec = inUse ? in.findNextDirectoryRecordInUse(rec, false) : in.readNextDirectoryRecord(rec); index.setLength(indexLen); }; }
private void copyFrom(DicomDirReader r) throws IOException { Attributes rec = r.findFirstRootDirectoryRecordInUse(false); while (rec != null) { copyChildsFrom(r, rec, out.addRootDirectoryRecord(new Attributes(rec))); rec = r.findNextDirectoryRecordInUse(rec, false); } }
private void copyChildsFrom(DicomDirReader r, Attributes src, Attributes dst) throws IOException { Attributes rec = r.findLowerDirectoryRecordInUse(src, false); while (rec != null) { copyChildsFrom(r, rec, out.addLowerDirectoryRecord(dst, new Attributes(rec))); rec = r.findNextDirectoryRecordInUse(rec, false); } }
private void copyChildsFrom(DicomDirReader r, Attributes src, Attributes dst) throws IOException { Attributes rec = r.findLowerDirectoryRecordInUse(src, false); while (rec != null) { copyChildsFrom(r, rec, out.addLowerDirectoryRecord(dst, new Attributes(rec))); rec = r.findNextDirectoryRecordInUse(rec, false); } }
private void copyFrom(DicomDirReader r) throws IOException { Attributes rec = r.findFirstRootDirectoryRecordInUse(false); while (rec != null) { copyChildsFrom(r, rec, out.addRootDirectoryRecord(new Attributes(rec))); rec = r.findNextDirectoryRecordInUse(rec, false); } }