public abstract class PresContextItem extends AssociationItem
| Constructor and Description |
|---|
PresContextItem(byte bItemType)
Instantiates a new presentation context item.
|
PresContextItem(byte bItemType,
byte bContextID)
Instantiates a new presentation context item.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getItemLength()
Gets the item length.
|
byte |
getPresContextId()
Gets the presentation context id.
|
void |
parse(IDicomStream objIDicomStream)
Parses the Presentation Context Item.
|
void |
populate(byte bContextID)
Populate Presentation context Item.
|
void |
serialize(IDicomStream objIDicomStream)
This method writes the Data Value to the given Stream.
|
void |
setPresContextId(byte bPresContextId)
Sets the presentation context id.
|
getItemType, setItemTypepublic PresContextItem(byte bItemType)
bItemType - byte value representing item type.public PresContextItem(byte bItemType,
byte bContextID)
bItemType - byte value representing item type.public byte getPresContextId()
public void setPresContextId(byte bPresContextId)
bPresContextId - byte value of presentation context id.public short getItemLength()
AssociationItemgetItemLength in class AssociationItempublic void parse(IDicomStream objIDicomStream) throws java.io.IOException, ParseException
parse in class AssociationItemobjIDicomStream - Stream on which Dicom Data resides.java.io.IOException - Signals that an I/O exception has occurred.ParseException - Signals that Parse exception has occurred.public void serialize(IDicomStream objIDicomStream) throws java.io.IOException, SerializeException
serialize in class AssociationItemobjIDicomStream - object of the stream onto which the Presentation Context Item is to be written.java.io.IOException - Signals that an I/O exception has occurred.SerializeException - Signals that Serialization exception has occurred.public void populate(byte bContextID)
bContextID - byte value of Presentation context id.