public class MaxLengthItem extends AssociationItem
| Constructor and Description |
|---|
MaxLengthItem()
Instantiates a new max length item.
|
MaxLengthItem(int maxLength)
Instantiates a new max length item.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getItemLength()
This method gets the length of Max Length Item.
|
int |
getMaxLength()
Gets the max length.
|
void |
parse(IDicomStream objIDicomStream)
Parses the Max Length Item.
|
void |
serialize(IDicomStream objIDicomStream)
This method writes the Data Value to the given Stream.
|
void |
setMaxLength(int maxLength)
Sets the max length.
|
getItemType, setItemTypepublic MaxLengthItem()
public MaxLengthItem(int maxLength)
maxLength - The maximum length of the variable field of the P-DATA-TF PDUs sent
by the acceptor on the association once established.public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength - int value of maximum length of the variable field of the P-DATA-TF PDUs sent
by the acceptor on the association once established.public short getItemLength()
getItemLength in class AssociationItempublic void parse(IDicomStream objIDicomStream) throws java.io.IOException
parse in class AssociationItemobjIDicomStream - the object of 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
serialize in class AssociationItemobjIDicomStream - object of the stream onto which the Max Length Item is to be written.java.io.IOException - Signals that an I/O exception has occurred.