public interface DicomDirWriter
| Modifier and Type | Method and Description |
|---|---|
void |
write(DicomDir dicomDir,
DicomObject dicomObject,
int transferSyntax,
boolean sequenceUndefined,
boolean groupLengths)
'writes' the content of the given
DicomDir to the specified DicomObject. |
void |
write(DicomDir dicomDir,
java.io.File file)
writes the content of the given
DicomDir to the specified File. |
void |
write(DicomDir dicomDir,
java.io.File file,
int transferSyntax,
boolean sequenceUndefined,
boolean groupLengths)
writes the content of the given
DicomDir to the specified File |
void write(DicomDir dicomDir, java.io.File file) throws java.io.IOException, DicomException
DicomDir to the specified File.
Explicit VR Little Endian transfer syntax will be used (and is automatically added to the file metainformation)dicomDir - DicomDir object to serializefile - File to write tojava.io.IOExceptionDicomExceptionvoid write(DicomDir dicomDir, java.io.File file, int transferSyntax, boolean sequenceUndefined, boolean groupLengths) throws java.io.IOException, DicomException
DicomDir to the specified FiledicomDir - DicomDir object to serializefile - File to write totransferSyntax - the transfersyntax to use for writing
(this is also automatically pushed to the file metainformation)sequenceUndefined - true - all sequences and items are encoded using undefined length,
false - all sequences and items are encoded using defined lengthgroupLengths - set to true to include group length tagsjava.io.IOExceptionDicomExceptionTransferSyntaxvoid write(DicomDir dicomDir, DicomObject dicomObject, int transferSyntax, boolean sequenceUndefined, boolean groupLengths) throws DicomException
DicomDir to the specified DicomObject.
Any relevant dicomdir-related content of the DicomObject is overwritten.dicomDir - DicomDir object to serializedicomObject - DicomObject to write totransferSyntax - the transfersyntax that will be used
(needed for calculating correct offsets)sequenceUndefined - true - all sequences and items will be encoded using undefined length,
false - all sequences and items will be encoded using defined length
(needed for calculating correct offsets)groupLengths - set to true when group length tags will be part of the real write
(needed for calculating correct offsets)DicomExceptionTransferSyntax