|
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.network.Dimse
public class Dimse
represents a DIMSE message. Dimse messages can be written to the outputstream of an assocation or can be read from the inputstream of an assocation with the AssocationIO class.
To create new Dimse messages for writing to an assocation, use the public
constructor Dimse(int pcId,Command command,DicomObject dataset).
Dimse messages that are read from an assocation with the read method of the AssocationIO class and that have a dataset present, will return an inputstream to this dataset as it is received from the network. This inputstream can be used to read the dataset into a DicomObject. Alternatively the getDataSet method can be used. The first call to getDataSet method will result in the reading and returning of the dataset into a newly created DicomObject. Subsequent calls will return a reference to this previously created DicomObject.
AssociationIO| Field Summary |
|---|
| Fields inherited from interface com.archimed.dicom.network.ULServiceMessage |
|---|
ABORT, ASS_ACKNOWLEDGE, ASS_REJECT, ASS_REQUEST, DIMSE, REL_REQUEST, REL_RESPONSE |
| Constructor Summary | |
|---|---|
Dimse(int pcId,
Command command,
DicomObject dataset)
Use this constructor to create a new Dimse instance for writing to an association. |
|
| Method Summary | |
|---|---|
Command |
getCommand()
returns the command of this DIMSE |
DicomObject |
getDataSet()
returns the dataset of this DIMSE or null if no dataset is present. |
java.io.InputStream |
getDataSetInputStream()
returns an inputstream to the dataset as it is received from the (socket) inputstream or null if no dataset is present. |
int |
getMessageType()
returns the type of ULServiceMessage |
int |
getPresentationContextId()
returns the presentation context ID of this DIMSE |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dimse(int pcId,
Command command,
DicomObject dataset)
pcId - the presentation context ID to be usedcommand - the command of the DIMSEdataset - the optional dataset of the DIMSE| Method Detail |
|---|
public int getMessageType()
getMessageType in interface ULServiceMessagepublic int getPresentationContextId()
public Command getCommand()
public DicomObject getDataSet()
throws java.io.IOException,
DicomException
java.io.IOException
DicomExceptionpublic java.io.InputStream getDataSetInputStream()
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||