Trispark JDT
2.50.13

com.archimed.dicom.dir
Interface DicomDirWriter


public interface DicomDirWriter

Provides write methods for writing DICOMDIRs to file.


Method Summary
 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
 

Method Detail

write

void write(DicomDir dicomDir,
           java.io.File file)
           throws java.io.IOException,
                  DicomException
writes the content of the given DicomDir to the specified File. Explicit VR Little Endian transfer syntax will be used (and is automatically added to the file metainformation)

Parameters:
dicomDir - DicomDir object to serialize
file - File to write to
Throws:
java.io.IOException
DicomException

write

void write(DicomDir dicomDir,
           java.io.File file,
           int transferSyntax,
           boolean sequenceUndefined,
           boolean groupLengths)
           throws java.io.IOException,
                  DicomException
writes the content of the given DicomDir to the specified File

Parameters:
dicomDir - DicomDir object to serialize
file - File to write to
transferSyntax - 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 length
groupLengths - set to true to include group length tags
Throws:
java.io.IOException
DicomException
See Also:
TransferSyntax

write

void write(DicomDir dicomDir,
           DicomObject dicomObject,
           int transferSyntax,
           boolean sequenceUndefined,
           boolean groupLengths)
           throws DicomException
'writes' the content of the given DicomDir to the specified DicomObject. Any relevant dicomdir-related content of the DicomObject is overwritten.

Parameters:
dicomDir - DicomDir object to serialize
dicomObject - DicomObject to write to
transferSyntax - 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)
Throws:
DicomException
See Also:
TransferSyntax

Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.