|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirBuilder
Builder facade for DirWriter
to generate and insert Directory
Records refering DICOM files in the DICOM Directory (= DICOMDIR file).
Can only be used for DICOM Directory with scheme
PATIENT STUDY SERIES IMAGE|PRESENTATION|SR DOCUMENT|KEY OBJECT DOC|...
DirRecord
objects will be generated according associated
DirBuilderPref
, specified in factory method.
DirBuilderFactory.newDirBuilder(org.dcm4che.media.DirWriter, org.dcm4che.media.DirBuilderPref)
DirBuilder
also take care, that there will be only
PATIENT
record with the same value of
Patient ID (0010,0020)
,
STUDY
record with the same value of
Study Instance UID (0020,000D)
with the same parent
PATIENT
record,
SERIES
record with the same value of
Series Instance UID (0020,000E)
with the same parent
STUDY
record,
Revisions:
2002/07/16 gunter zeilinger:
DirBuilderFactory.newDirBuilder(org.dcm4che.media.DirWriter, org.dcm4che.media.DirBuilderPref)
,
DirBuilderPref
,
DirWriter
,
DirRecord
Method Summary | |
---|---|
int |
addFileRef(java.io.File file)
Add (up to 4) DirRecord objects refering the DICOM object
in the specified file to the associated DICOM Directory. |
int |
addFileRef(java.lang.String[] fileIDs,
Dataset ds)
Add (up to 4) DirRecord objects refering the DICOM object
with a specified File IDs to the associated DICOM Directory. |
void |
close()
Close the DICOM Dictionary (= DICOMDIR file). |
DirWriter |
getDirWriter()
Get underlying DirWriter object |
Method Detail |
---|
int addFileRef(java.io.File file) throws java.io.IOException
DirRecord
objects refering the DICOM object
in the specified file
to the associated DICOM Directory.
The function may internally invoke
DirWriter.commit()
of the
associated DirWriter
DirWriter.rollback()
!
file
- DICOM file
DirRecord
objects.
java.io.IOException
- if an IO error occurs, writing the record into the
DICOM Directory.
int addFileRef(java.lang.String[] fileIDs, Dataset ds) throws java.io.IOException
DirRecord
objects refering the DICOM object
with a specified File IDs to the associated DICOM Directory.
The function may internally invoke DirWriter.commit()
of the
associated DirWriter
. Therefore, the operation cannot be
undo by DirWriter.rollback()
!
fileIDs
- File ID componentsds
- DICOM Data Set
DirRecord
objects.
java.io.IOException
- if an IO error occurs, writing the record into the
DICOM Directory.void close() throws java.io.IOException
java.io.IOException
- If an I/O error occursDirWriter getDirWriter()
DirWriter
object
DirWriter
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |