public class DicomSerializer
extends java.lang.Object
| Constructor and Description |
|---|
DicomSerializer() |
| Modifier and Type | Method and Description |
|---|---|
int |
serialize(IDicomStream objIDicomStream,
IDataSet objIDataSet)
This method serializes only the DataSet onto the specified stream.
|
int |
serialize(IDicomStream objIDicomStream,
IDataSet objIDataSet,
boolean bAsIs)
This method serializes the DataSet according to the specified Transfer Syntax
by taking default dictionary reader and File Header if needed.
|
int |
serialize(IDicomStream objIDicomStream,
IDataSet objIDataSet,
IDicomFileHeader objDicomFileHeader,
IDictionaryReader objIDictionaryReader,
boolean bAsIs)
This method serializes the DataSet according to the specified Transfer Syntax and dictionary reader.
|
int |
serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
boolean bAsIs)
Serialize as part10 file.
|
int |
serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
IDicomFileHeader objDicomFileHeader,
boolean bAsIs)
This method serializes the DataSet on to the file using Default Dictionary Reader.
|
int |
serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
IDicomFileHeader objDicomFileHeader,
IDictionaryReader objIDictionaryReader,
boolean bAsIs)
This method serializes DataSet into a PART-10 complaint DICOM File.
|
public int serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
IDicomFileHeader objDicomFileHeader,
boolean bAsIs)
throws java.io.IOException
strFileName - - Specifies the file name on which to serialize.objIDataSet - - Specifies the DataSet.objDicomFileHeader - - object of FileHeader which is DICOM PART-10 complaint File Header.bAsIs - - specifies the mode of serialization, True if mode is as-is and false if mode is default.SerializeException - Signals if Serialization Exception has occurred.java.io.IOException - Signals if IO Exception has occurred.java.lang.InstantiationException - Signals that Instantiation Exception has occurred.java.lang.NoSuchMethodException - Signals that No Such Method Exception has occurred.java.lang.IllegalAccessException - Signals that Illegal Access Exception has occurred.java.lang.ClassNotFoundException - Signals that Class Not Found Exception has occurred.java.lang.reflect.InvocationTargetException - Signals that Invocation Target Exception has occurred.public int serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
boolean bAsIs)
throws java.io.IOException
strFileName - the string file name.objIDataSet - the object of i data set.bAsIs - the b as is.java.io.IOException - Signals that an I/O exception has occurred.public int serializeAsPart10File(java.lang.String strFileName,
IDataSet objIDataSet,
IDicomFileHeader objDicomFileHeader,
IDictionaryReader objIDictionaryReader,
boolean bAsIs)
throws java.io.IOException
strFileName - - Specifies the file name on which to serialize.objIDataSet - - Specifies the DataSet.objDicomFileHeader - - object of FileHeader which is DICOM PART-10 complaint File Header.objIDictionaryReader - - object of DictionaryReader specified by user.bAsIs - the b as is.SerializeException - Signals if Serialization Exception has occurred.java.io.IOException - Signals if IO Exception has occurred.java.lang.InstantiationException - Signals that Instantiation Exception has occurred.java.lang.NoSuchMethodException - Signals that No Such Method Exception has occurred.java.lang.IllegalAccessException - Signals that Illegal Access Exception has occurred.java.lang.ClassNotFoundException - Signals that Class Not Found Exception has occurred.java.lang.reflect.InvocationTargetException - Signals that Invocation Target Exception has occurred.public int serialize(IDicomStream objIDicomStream, IDataSet objIDataSet, IDicomFileHeader objDicomFileHeader, IDictionaryReader objIDictionaryReader, boolean bAsIs) throws java.io.IOException, SerializeException
objIDicomStream - - The stream on which the DataSet is to be serialized.objIDataSet - - The DataSet holding DataElements.objIDictionaryReader - - object of DictionaryReader specified by user.bAsIs - the b as is.SerializeException - Signals if Serialization Exception has occurred.java.io.IOException - Signals if IO Exception has occurred.java.lang.InstantiationException - Signals that Instantiation Exception has occurred.java.lang.NoSuchMethodException - Signals that No Such Method Exception has occurred.java.lang.IllegalAccessException - Signals that Illegal Access Exception has occurred.java.lang.ClassNotFoundException - Signals that Class Not Found Exception has occurred.java.lang.reflect.InvocationTargetException - Signals that Invocation Target Exception has occurred.public int serialize(IDicomStream objIDicomStream, IDataSet objIDataSet, boolean bAsIs) throws SerializeException, java.io.IOException
objIDicomStream - - The stream on which the DataSet is to be serialized.objIDataSet - - The DataSet holding DataElements.bAsIs - the b as is.SerializeException - the serialize exception.java.io.IOException - Signals that an I/O exception has occurred.public int serialize(IDicomStream objIDicomStream, IDataSet objIDataSet) throws SerializeException, java.io.IOException
objIDicomStream - - The stream on which the DataSet is to be serialized.objIDataSet - - The DataSet holding DataElements.SerializeException - Signals if Serialization Exception has occurred.java.io.IOException - Signals if IO Exception has occurred.java.lang.InstantiationException - Signals that Instantiation Exception has occurred.java.lang.NoSuchMethodException - Signals that No Such Method Exception has occurred.java.lang.IllegalAccessException - Signals that Illegal Access Exception has occurred.java.lang.ClassNotFoundException - Signals that Class Not Found Exception has occurred.java.lang.reflect.InvocationTargetException - Signals that Invocation Target Exception has occurred.