public class OB extends DicomValue
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(byte[] arrImage)
Adds pixel data in the form of raw buffer
|
void |
changeToUndefined()
This function sets the Value length to -1.
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Attribute as Hidden.
|
long |
getMaxLength()
Retrieves the max length for OB DataType
|
int |
getValueLength()
Retrieves the value length of the item.
|
boolean |
read(IDicomStream objIDicomStream,
int iOBLength)
This method reads OB in the structure -> OB Basic Offset Table with NO Item Value(Tag and Length)
then Item Tag, length and value for each frame specified in the offset table3
|
void |
setValue(java.lang.Object objValue)
Sets the value in OB DataType
|
boolean |
validate()
Validates OB DataType
|
boolean |
validate(java.lang.Object objValue)
Validates OB DataType
|
int |
write(IDicomStream objIDicomStream)
This method writes the series of byte buffers present in the OB datatype.
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRTypepublic boolean read(IDicomStream objIDicomStream, int iOBLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - stream from which the Item is to be writteniOBLength - length of the DicomValue to be read from the streamInvalidDataTypeException - If data type validation fails.java.io.IOException - If Input/Output operation fails.public long getMaxLength()
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 boolean validate(java.lang.Object objValue)
throws ValidationException
validate in interface IDicomValuevalidate in class DicomValueobjValue - value of OB to be validatedValidationException - If validation of DataType fails.public boolean validate()
throws ValidationException
validate in interface IDicomValuevalidate in class DicomValueobjValue - value of OB to be validatedValidationException - If validation of DataType fails.public void addItem(byte[] arrImage)
arrImage - Byte array of raw image data.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 - object of type Object representing the value of OB DataTypeInvalidDataTypeException - 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.public void changeToUndefined()