public class ImageElement extends DataElement
| Constructor and Description |
|---|
ImageElement(IDataElement objIDataElement)
This constructor initializes Image Element object.
|
ImageElement(ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictionaryReader,
OBImageObject objOBImageObject)
Creates Image Element with specified Transfer syntax and OBImageObject Dicom Data.
|
ImageElement(ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictionaryReader,
OWImageObject objOWImageObject)
Creates Image Element with specified Transfer syntax and OWImageObject Dicom Data.
|
ImageElement(ITransferSyntax objITransferSyntax,
OBImageObject objOBImageObject)
Creates Image Element with specified Transfer syntax and OBImageObject Dicom Data.
|
ImageElement(ITransferSyntax objITransferSyntax,
OWImageObject objOWImageObject)
Creates Image Element with specified Transfer syntax and OWImageObject Dicom Data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
This function disposes the Image Element.
|
byte[] |
getBytes(int iNumberOfBytes)
The implementation of this method gets the iNumberOfBytes of image element and returns a byte array.
|
int |
getDataElementLength()
The implementation of this method gets the length of image element.
|
ISingleCollection<byte[]> |
getValue()
This function will retrieve the value of dicom data of the Data Element.
|
boolean |
isAvailable()
This method gives information if OB image Object data is available.
|
int |
parse(IDicomStream objIDicomStream)
The implementation of this method parses the image element.
|
int |
serialize(IDicomStream objIDicomStream)
The implementation of this method serializes the image element.
|
boolean |
validate()
This function validates the Image Element.
|
clone, dumpDICOMInfo, equals, getDicomValue, getDictionaryReader, getTag, getTransferSyntax, getValueLength, getValueMultiplicity, setDicomValue, setDictionaryReader, setTag, setTransferSyntax, setValueMultiplicitypublic ImageElement(ITransferSyntax objITransferSyntax, OBImageObject objOBImageObject) throws InvalidDataElementException
objITransferSyntax - value of Transfer Syntax.objOBImageObject - populated object of OBImageObject.InvalidDataElementExceptionpublic ImageElement(ITransferSyntax objITransferSyntax, OWImageObject objOWImageObject) throws InvalidDataElementException
objITransferSyntax - value of Transfer Syntax.objOWImageObject - populated object of OWImageObject.InvalidDataElementExceptionpublic ImageElement(ITransferSyntax objITransferSyntax, IDictionaryReader objIDictionaryReader, OBImageObject objOBImageObject)
objITransferSyntax - value of Transfer Syntax.objOBImageObject - populated object of Dicom Data OBImageObject.objIDictionaryReader - instance of Dictionary Reader.public ImageElement(ITransferSyntax objITransferSyntax, IDictionaryReader objIDictionaryReader, OWImageObject objOWImageObject)
objITransferSyntax - value of Transfer Syntax.objOWImageObject - populated object of Dicom Data OWImageObject.objIDictionaryReader - instance of Dictionary Reader.public ImageElement(IDataElement objIDataElement)
objIDataElement - The object of data element representing image element.public int parse(IDicomStream objIDicomStream) throws InvalidDataElementException, java.io.IOException
parse in interface IDataElementparse in class DataElementobjIDicomStream - stream from which the DataElement is to be parsed and populatedInvalidDataElementException - If Data Element fails to satisfy Validation Criteria.java.io.IOException - If Input/Output operation fails.public int serialize(IDicomStream objIDicomStream) throws InvalidDataElementException, java.io.IOException
serialize in interface IDataElementserialize in class DataElementobjIDicomStream - stream to which the DataElement is to be serialized.InvalidDataElementException - If Data Element fails to satisfy Validation Criteria.java.io.IOException - If Input/Output operation fails.public int getDataElementLength()
getDataElementLength in interface IDataElementgetDataElementLength in class DataElementpublic byte[] getBytes(int iNumberOfBytes)
throws java.io.IOException
iNumberOfBytes - Number of bytes of image data required.java.io.IOException - if IO operation failspublic boolean isAvailable()
throws java.io.IOException
java.io.IOException - if IO operation failspublic boolean validate()
throws InvalidDataElementException
validate in interface IDataElementvalidate in class DataElementInvalidDataElementException - Signals if Data Element Validation Fails.public ISingleCollection<byte[]> getValue()
DataElementgetValue in interface IDataElementgetValue in class DataElementpublic void dispose()
throws java.io.IOException
java.io.IOException - Signals if an IO Exception occurs.