public class ExplicitDE extends DataElement
| Constructor and Description |
|---|
ExplicitDE()
Creates Explicit Data Element with Default Dictionary Reader & Little Endian Explicit Transfer syntax.
|
ExplicitDE(IDictionaryReader objIDictReader)
Creates empty Explicit Data Element with specified dictionary reader and Little Endian Explicit Transfer syntax.
|
ExplicitDE(int iGroupNumber,
int iElementNumber,
DicomValue objDicomValue,
ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictReader)
Creates Explicit DataElement based on the GroupNumber, ElementNumber, VR Type , Dicom Data , Transfer Syntax and Dictionary Reader.
|
ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue)
Creates Explicit DataElement based on the GroupNumber, ElementNumber, VR Type and value.
|
ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
IDictionaryReader objIDictReader)
Creates Explicit DataElement based on the GroupNumber, ElementNumber, VR Type, Value and Dictionary Reader.
|
ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
ITransferSyntax objITransferSyntax)
Creates Explicit Data Element based on GroupNumber, ElementNumber, VR Type, Value and TransferSyntax.
|
ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictReader)
Create a DataElement containing sequence in which case the Transfersyntax and Dictionary Reader needs to be specified
from outside.
|
ExplicitDE(ITransferSyntax objITransferSyntax)
Creates empty Explicit Data Element with specified Transfer Syntax.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object objTempObject)
This method checks for equality of two data elements.
|
int |
getDataElementLength()
Retrieves the length of the DataElement
|
int |
getIVRType()
Retrieves the value representation type of the Dicom Data
|
int |
parse(IDicomStream objIDicomStream)
This method parses the data element with explicitDE structure specified in documentation
Note : It could throw OutOfMemoryException if length exceeds from allowed Heap Space.
|
int |
serialize(IDicomStream objIDicomStream)
Serializes the DataElement onto the stream provided
|
void |
setDictionaryReader(IDictionaryReader objIDictReader)
Sets the Dictionary Reader.
|
void |
setIVRType(int iVRType)
sets the Value Representation type into the DicomValue
|
clone, dumpDICOMInfo, getDicomValue, getDictionaryReader, getTag, getTransferSyntax, getValue, getValueLength, getValueMultiplicity, setDicomValue, setTag, setTransferSyntax, setValueMultiplicity, validatepublic ExplicitDE()
public ExplicitDE(ITransferSyntax objITransferSyntax)
objITransferSyntax - value of Transfer Syntax.public ExplicitDE(IDictionaryReader objIDictReader)
objIDictReader - Dictionary Reader instance.public ExplicitDE(int iGroupNumber,
int iElementNumber,
DicomValue objDicomValue,
ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictReader)
throws InvalidDataElementException
iGroupNumber - GroupNumber from the Tag identifying this DataElement.iElementNumber - ElementNumber from the Tag identifying this DataElement.iVRType - Value Representation Type specified in @see DicomConstants.objDicomValue - Populated Dicom Data to be set in Explicit Data Element.objITransferSyntax - value of Transfer Syntax.objIDictReader - Dictionary Reader instance.InvalidDataElementException - thrown when creation of Data Element fails.public ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue)
throws InvalidDataElementException
iGroupNumber - GroupNumber from the Tag identifying this DataElement.iElementNumber - ElementNumber from the Tag identifying this DataElement.iVRType - Value Representation Type specified in @see DicomConstants.objValue - value of the DataElement.InvalidDataElementException - thrown when creation of Data Element fails.public ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
IDictionaryReader objIDictReader)
throws InvalidDataElementException
iGroupNumber - GroupNumber from the Tag identifying this DataElement.iElementNumber - ElementNumber from the the identifying this DataElement.iVRType - Value Representation Type specified in @see DicomConstants.objValue - Value of the DataElement.objIDictReader - instance of Dictionary ReaderInvalidDataElementException - thrown when creation of Data Element fails.public ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
ITransferSyntax objITransferSyntax)
throws InvalidDataElementException
iGroupNumber - GroupNumber from the Tag identifying this DataElement.iElementNumber - ElementNumber from the Tah identifying this DataElement.iVRType - Value Representation Type specified in @see DicomConstants.objValue - value of the DataElement.objITransferSyntax - value of Transfer Syntax.InvalidDataElementException - thrown when creation of Data Element fails.public ExplicitDE(int iGroupNumber,
int iElementNumber,
int iVRType,
java.lang.Object objValue,
ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictReader)
throws InvalidDataElementException
iGroupNumber - GroupNumber from the Tag identifying this DataElementiElementNumber - ElementNumber from the the identifying this DataElementiVRType - Value Representation Type specified in @see DicomConstantsobjValue - value of the DataElementobjITransferSyntax - TransferSyntax specified by the DICOM Standard.objIDictReader - instance of Dictionary ReaderInvalidDataElementException - thrown when creation of Data Element fails.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.com.cdac.dcmlibs.baselibs.DataElement#parse(com.cdac.dcmlibs.commoninterface.IDicomStream)public int serialize(IDicomStream objIDicomStream) throws java.io.IOException
serialize in interface IDataElementserialize in class DataElementobjIDicomStream - stream from which the DataElement is to be parsed and populatedjava.io.IOException - Signals that an I/O exception of some sort has occurred.public int getIVRType()
DicomConstantspublic void setIVRType(int iVRType)
iVRType - specifies the Value Representation typepublic int getDataElementLength()
getDataElementLength in interface IDataElementgetDataElementLength in class DataElementpublic void setDictionaryReader(IDictionaryReader objIDictReader)
setDictionaryReader in class DataElementobjIDictReader - DictionaryReader to read from the Dictionary.public boolean equals(java.lang.Object objTempObject)
equals in interface IDataElementequals in class DataElementobjTempObject - Data Element whose equality has to be checked with instance data element.