public Iterator<DicomElement> datasetIterator() { return new UnmodifiabledIterator(dcmobj.datasetIterator()); }
private ItemInfo createItemInfo(DicomObject attrs) { if (needItemInfo()) return new ItemInfo(attrs.datasetIterator(), includeGroupLength); return null; }
/** * Write a DICOM dataset to the output stream. * * @param attrs * A DicomObject containing the attributes to write. * @param transferSyntax * A TransferSyntax object representing the transfer syntax of * the file. * @throws IOException */ public void writeDataset(DicomObject attrs, TransferSyntax transferSyntax) throws IOException { setTransferSyntax(transferSyntax); this.ts = transferSyntax; writeElements(attrs.datasetIterator(), includeGroupLength, createItemInfo(attrs)); if (autoFinish) { finish(); } }
DicomObject sObj = sourceObj; Iterator<DicomElement> itKeys = kObj.datasetIterator();