public class OF extends DicomValue
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(float[] arrImage)
Adds pixel data in the form of raw buffer
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Attribute as Hidden.
|
long |
getMaxLength()
Retrieves the max length for OF DataType
|
int |
getValueLength()
Retrieves the value length of the item.
|
boolean |
read(IDicomStream objIDicomStream,
int iOFLength)
This method reads OF in the structure -> OF 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 OF DataType
|
void |
setValueLength()
sets the actual value length of OF
|
java.lang.String |
toString()
This function returns the String value of AE Data Type.
|
boolean |
validate()
Validates OF DataType
|
boolean |
validate(java.lang.Object objValue)
Validates OF DataType
|
int |
write(IDicomStream objIDicomStream)
This method writes the series of byte buffers present in the OF datatype.
|
clone, getIVRType, getValue, getValueMultiplicity, setIVRTypepublic boolean read(IDicomStream objIDicomStream, int iOFLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - stream from which the Item is to be writteniOFLength - 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 - Object of OF to be validatedValidationException - If validation of DataType fails.public boolean validate()
throws ValidationException
validate in interface IDicomValuevalidate in class DicomValueobjValue - Object of OF to be validatedValidationException - If validation of DataType fails.public void addImage(float[] arrImage)
arrImage - Byte array of raw image data.public void setValueLength()
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 OF DataTypeInvalidDataTypeException - If data type 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.