public class SS 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 SS DataType
|
int |
getValueLength()
Retrieves the actual value length of SS
|
boolean |
read(IDicomStream objIDicomStream,
int iLength)
Reads the SS 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 SS Data Type.
|
boolean |
validate()
This method Validates SS DataType
|
boolean |
validate(java.lang.Object objToValidate)
This method Validates SS DataType
|
int |
write(IDicomStream objIDicomStream)
This method writes the series of byte buffers present in the SS datatype.
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRTypepublic long getMaxLength()
public boolean validate(java.lang.Object objToValidate)
throws InvalidValueException,
LengthLimitException
validate in interface IDicomValuevalidate in class DicomValueobjToValidate - object of SS to be validatedInvalidValueException - If invalid value set for the datatype.LengthLimitException - If value length limit crossedpublic boolean validate()
throws InvalidValueException,
LengthLimitException
validate in interface IDicomValuevalidate in class DicomValueInvalidValueException - If invalid value set for the datatype.LengthLimitException - If value length limit crossedpublic 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 on which to write the DataElementsjava.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 - If DataType validation fails.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.