public abstract class PDU
extends java.lang.Object
| Constructor and Description |
|---|
PDU()
Instantiates a new pDU.
|
PDU(EnumPDUType enumPDUType)
This constructor sets the PDU type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getLength()
Gets the length.
|
EnumPDUType |
getPDUType()
Retrieves PDU type.
|
void |
parse(IDicomStream objIDicomStream)
Parse the PDU from the stream available.
|
void |
serialize(IDicomStream objIDicomStream)
This method writes the Data Value to the given Stream.
|
void |
setPDUType(EnumPDUType enumPDUType)
Sets PDU Type.
|
public PDU()
public PDU(EnumPDUType enumPDUType)
enumPDUType - type of PDUpublic EnumPDUType getPDUType()
public void setPDUType(EnumPDUType enumPDUType)
enumPDUType - type of PDUpublic void parse(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - Stream on which dicom data is available.java.io.IOException - Signals that an I/O exception has occurred.public void serialize(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - object of the stream onto which the PDU is to be written.java.io.IOException - Signals that an I/O exception has occurred.public abstract int getLength()