public class US extends DicomValue
| Modifier and Type | Method and Description |
|---|---|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Attribute in redable form.
|
long |
getMaxLength()
Retrieves the max length for US DataType
|
int |
getValueLength()
Retrieves the actual value length of US
|
boolean |
read(IDicomStream objIDicomStream,
int iLength)
Reads the US DataType structure from underlying stream
|
void |
setValue(java.lang.Object objValue)
Sets the value in the DicomValue after performing validation on the value
After setting the value setValue returns the errorcode indicating
whether the validation of value was successful or failing
|
java.lang.String |
toString()
This function returns the String value of US Data Type.
|
boolean |
validate()
Validates US DataType
|
boolean |
validate(java.lang.Object objToValidate)
Validates US DataType
|
int |
write(IDicomStream objIDicomStream)
This fucntion writes the Data Value to the Stream
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRTypepublic long getMaxLength()
public boolean validate(java.lang.Object objToValidate)
validate in interface IDicomValuevalidate in class DicomValueobjToValidate - value of US to be validatedpublic boolean validate()
validate in interface IDicomValuevalidate in class DicomValuepublic boolean read(IDicomStream objIDicomStream, int iLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - stream from which the DataType is to be writteniLength - 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 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 - Signals Data Type is not valid.public java.lang.String toString()
toString in class java.lang.Objectpublic 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.