public class UN extends DicomValue
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Attribute as Hidden.
|
long |
getMaxLength()
Retrieves the max length for UL DataType
|
int |
getValueLength()
Retrieves the actual value length of UL
|
boolean |
read(IDicomStream objIDicomStream,
int iUNLength)
Reads the unknown data from the stream and stores it in a byte buffer
Note : It could throw OutOfMemoryException if length exceeds from allowed Heap Space.
|
void |
setValue(java.lang.Object objValue)
Sets the value in the DicomValue after performing validation on the value.
|
boolean |
validate()
Validates UN DataType according to the rules specified in the DICOM Standard
|
boolean |
validate(java.lang.Object objValue)
Validates UN DataType according to the rules specified in the DICOM Standard
|
int |
write(IDicomStream objIDicomStream)
Writes the unknown data to the stream from the byte buffer
This function writes the Data Value to the Stream
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRTypepublic long getMaxLength()
public boolean read(IDicomStream objIDicomStream, int iUNLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - stream from which the DataType is to be writteniUNLength - length of the DicomValue to be read from the streamInvalidDataTypeException - If data type validation fails.java.io.IOException - If Input/Output operation fails.public int write(IDicomStream objIDicomStream) throws java.io.IOException
write in interface IDicomValuewrite in class DicomValueobjIDicomStream - stream onto which the FD DataType is to serializedjava.io.IOException - If Input/Output operation fails.public boolean validate(java.lang.Object objValue)
throws InvalidValueException,
LengthLimitException
validate in interface IDicomValuevalidate in class DicomValueobjValue - instance of base Object class.InvalidValueException - If dataType value validation fails.LengthLimitException - If value length exceeds the limit.public boolean validate()
throws InvalidValueException,
LengthLimitException
validate in interface IDicomValuevalidate in class DicomValueInvalidValueException - If dataType value validation fails.LengthLimitException - If value length exceeds the limit.public int getValueLength()
getValueLength in interface IDicomValuegetValueLength in class DicomValuepublic void setValue(java.lang.Object objValue)
throws InvalidDataTypeException
setValue in interface IDicomValuesetValue in class DicomValueobjValue - value that is to be set into the DicomValueInvalidDataTypeException - If data type validation fails.public void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.