|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.DicomWriter
public class DicomWriter
DicomWriter is capable of writing DicomObject instances to an Outputstream either as DICOM Part 10 files or as raw datasets.
| Field Summary | |
|---|---|
static int |
DCMFILE_GENERATE
|
static int |
DCMFILE_NO
|
static int |
DCMFILE_YES
|
static int |
GRPLEN_ALL
|
static int |
GRPLEN_KEEP
|
static int |
GRPLEN_NONE
|
protected JdtLogger |
log
|
static int |
SEQLEN_DEFINED
|
static int |
SEQLEN_KEEPANDDEF
|
static int |
SEQLEN_KEEPANDUNDEF
|
static int |
SEQLEN_UNDEFINED
|
| Constructor Summary | |
|---|---|
DicomWriter()
|
|
| Method Summary | |
|---|---|
void |
addTagWriteListener(TagWriteListener listener)
adds a TagReadListener for every data element read |
void |
addTagWriteListener(TagWriteListener listener,
int tag)
adds a TagWriteListener for a specific data element specified by a tag constant. |
void |
addTagWriteListener(TagWriteListener listener,
int group,
int element)
adds a TagReadListener for a specific data element specified by a group element pair |
void |
removeTagWriteListener(TagWriteListener listener)
removes a TagReadListener. |
void |
removeTagWriteListener(TagWriteListener listener,
int tag)
removes a TagWriteListener. |
void |
removeTagWriteListener(TagWriteListener listener,
int group,
int element)
removes a TagReadListener. |
void |
write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile)
writes a DicomObject to an OutputStream as a DICOM file or a raw DICOM dataset. |
void |
write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile,
int transfersyntax,
boolean seq_undef)
writes a DicomObject to an OutputStream as a DICOM file or DICOM stream. |
void |
write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile,
int transfersyntax,
boolean seq_undef,
boolean grouplens)
writes a DicomObject to an OutputStream as a DICOM file or DICOM stream. |
void |
writeDataSet(DicomObject dcm,
java.io.OutputStream out,
int transferSyntax,
int seqLengthOpt,
int groupLengthOpt)
|
void |
writeFile(DicomObject dcm,
java.io.OutputStream out,
int seqLengthOpt,
int groupLengthOpt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GRPLEN_NONE
public static final int GRPLEN_ALL
public static final int GRPLEN_KEEP
public static final int DCMFILE_NO
public static final int DCMFILE_YES
public static final int DCMFILE_GENERATE
public static final int SEQLEN_UNDEFINED
public static final int SEQLEN_DEFINED
public static final int SEQLEN_KEEPANDUNDEF
public static final int SEQLEN_KEEPANDDEF
protected JdtLogger log
| Constructor Detail |
|---|
public DicomWriter()
| Method Detail |
|---|
public void addTagWriteListener(TagWriteListener listener,
int tag)
listener - TagWriteListenertag - int
public void addTagWriteListener(TagWriteListener listener,
int group,
int element)
listener - group - element - public void addTagWriteListener(TagWriteListener listener)
listener - TagReadListener
public void removeTagWriteListener(TagWriteListener listener,
int tag)
listener - tag -
public void removeTagWriteListener(TagWriteListener listener,
int group,
int element)
listener - group - element - public void removeTagWriteListener(TagWriteListener listener)
listener - TagReadListener
public void write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile)
throws DicomException,
java.io.IOException
Jdt.setWriteDefaultUndefLenSequences(boolean)
and Jdt.setWriteDefaultGroupLengths(boolean))
dcm - the DicomObjectout - the OutputStream written todicomfile - indicates whether the data set should be written as a
DICOM file (see Part 3.10)(true) or as a DICOM stream (false)
DicomException
java.io.IOException
public void write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile,
int transfersyntax,
boolean seq_undef)
throws DicomException,
java.io.IOException
dcm - the DicomObjectout - the OutputStream written todicomfile - indicates whether the data set should be written as a
DICOM file (see Part 3.10)(true) or as a DICOM stream (false)transfersyntax - the transfer syntax to useseq_undef - true - all sequences and items are encoded using undefined length,
false - all sequences and items are encoded using defined length
DicomException
java.io.IOExceptionTransferSyntax
public void write(DicomObject dcm,
java.io.OutputStream out,
boolean dicomfile,
int transfersyntax,
boolean seq_undef,
boolean grouplens)
throws DicomException,
java.io.IOException
dcm - the DicomObjectout - the OutputStream written todicomfile - indicates whether the data set should be written as a
DICOM file (see Part 3.10)(true) or as a DICOM stream (false)transfersyntax - the transfer syntax to useseq_undef - true - all sequences and items are encoded using undefined length,
false - all sequences and items are encoded using defined lengthgrouplens - when true group length attributes are added.
DicomException
java.io.IOExceptionTransferSyntax
public void writeFile(DicomObject dcm,
java.io.OutputStream out,
int seqLengthOpt,
int groupLengthOpt)
throws DicomException,
java.io.IOException
dcm - DicomObjectout - OutputStreamseqLengthOpt - intgroupLengthOpt - int
DicomException
java.io.IOException
public void writeDataSet(DicomObject dcm,
java.io.OutputStream out,
int transferSyntax,
int seqLengthOpt,
int groupLengthOpt)
throws DicomException,
java.io.IOException
dcm - DicomObjectout - OutputStreamtransferSyntax - intfileOpt - intseqLengthOpt - intgrouplengthOpt - int
DicomException
java.io.IOException
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||