public abstract class IOD
extends java.lang.Object
| Constructor and Description |
|---|
IOD()
This constructor assumes that the IOD will have default TransferSyntax,
empty DataSet, and default DictionaryReader.
|
IOD(IDataSet objIDataSet_)
This constructor assumes that the IOD will have TransferSyntax specified by the DataSet,
DataSet specified by the user, and default DictionaryReader.
|
IOD(IDictionaryReader objIDictionaryReader_)
This constructor assumes that the IOD with DictionaryReader specified by the user
at the time of IOD creation.
|
IOD(ITransferSyntax objITransferSyntax_)
This constructor assumes that the IOD will have TransferSyntax specified by the user,
empty DataSet, and default DictionaryReader.
|
IOD(ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictionaryReader_)
This constructor assumes that the IOD will have TransferSyntax and Dictionary Reader specified by the DataSet,.
|
IOD(java.lang.String strFileName)
Creates IOD from a DICOM file containing corresponding DICOM data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDataElement(java.lang.String strDataElementName,
java.lang.Object objValue)
This method adds the data element in IOD.
|
abstract void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the name and value of contents of IOD
that is, Module and its corresponding Attributes in readable form
to the specified stream.
|
IDataSet |
getDataSet()
This method provides the DataSet if and only if the IOD is valid according to the rules specified
in the DICOM Standard PS3.
|
ITransferSyntax |
getTransferSyntax()
This method returns the TransferSyntax set in the IOD.
|
boolean |
isModulePresent(java.lang.String strModuleName)
Checks whether the Module is present in the IOD or not.
|
boolean |
isPresent(int iGroupNumber,
int iElementNumber)
Checks if the DataElement for the given GroupNumber,ElementNumber pair exists
in IOD.
|
boolean |
removeDataElement(java.lang.String strDataElementName,
boolean isForceFullyDelete)
This method removes the data element from the IOD.
|
boolean |
removeModule(java.lang.String strModuleName,
boolean isForceFullyDelete)
This method removes the module from the IOD.
|
boolean |
validate()
This method validates IOD according to the Module Table given in The DICOM Standard.
|
public IOD()
public IOD(ITransferSyntax objITransferSyntax_)
objITransferSyntax_ - TransferSyntax specified by the userpublic IOD(IDictionaryReader objIDictionaryReader_)
objIDictionaryReader_ - DictionaryReader specified by the userpublic IOD(IDataSet objIDataSet_)
objIDataSet_ - Data set specified by the userpublic IOD(ITransferSyntax objITransferSyntax, IDictionaryReader objIDictionaryReader_)
objITransferSyntax - TransferSyntax specified by the userobjIDictionaryReader_ - DictionaryReader specified by the userpublic IOD(java.lang.String strFileName)
throws java.io.IOException,
InvalidIODException
strFileName - DICOM File with absolute path.java.io.IOException - signals Exception caused due to wrong I/O operations.ParseException - signals if some parse exceptions occurred.InvalidIODExceptionpublic IDataSet getDataSet()
public ITransferSyntax getTransferSyntax()
public boolean validate()
throws InvalidIODException
InvalidIODException - the invalid iod exceptionpublic boolean removeModule(java.lang.String strModuleName,
boolean isForceFullyDelete)
strModuleName - String value of Module Name.isForceFullyDelete - boolean variable which decides to delete the Module forcefully or not.
if isForceFullyDelete is true then module is forcefully deleted.
if isForceFullyDelete is false then module is deleted based on Validation Mode specified (LOW/HIGH/STRICT)public boolean isPresent(int iGroupNumber,
int iElementNumber)
iGroupNumber - - Group Number of the DataElement.iElementNumber - - Element Number of the DataElement.public boolean isModulePresent(java.lang.String strModuleName)
strModuleName - String value of module namepublic boolean removeDataElement(java.lang.String strDataElementName,
boolean isForceFullyDelete)
strDataElementName - String name of the Data Element.isForceFullyDelete - boolean variable which decides to delete the data element forcefully or not.
if isForceFullyDelete is true then the data element is forcefully deleted.
if isForceFullyDelete is false then the data element is deleted based on Validation Mode specified (LOW/HIGH/STRICT)public boolean addDataElement(java.lang.String strDataElementName,
java.lang.Object objValue)
strDataElementName - Data Element Name that is to be added to the IOD.objValue - - The value of the data element to be added in data set.public abstract 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.