contentSeq.add(contentItem(valueTypeOf(inst), refSOP(cuid, iuid)));
return true;
}
public void writeKOS() throws IOException {
DicomOutputStream dos = new DicomOutputStream(
new BufferedOutputStream(fname != null
? new FileOutputStream(fname)
: new FileOutputStream(FileDescriptor.out)),
nofmi ? UID.ImplicitVRLittleEndian
: UID.ExplicitVRLittleEndian);
dos.setEncodingOptions(encOpts);
try {
dos.writeDataset(
nofmi ? null : kos.createFileMetaInformation(tsuid),
kos);
} finally {
dos.close();
}
}