public class DataTypeConvertor
extends java.lang.Object
| Constructor and Description |
|---|
DataTypeConvertor() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
arrayToString(java.lang.String[] str)
This method generates string from a string array
|
static java.lang.String |
dArrayToString(double[] dArray)
This method generates string from a double array
|
static java.lang.String |
dicomDatatoString(IDicomValue objIDicomValue)
This mehod constructs string for specified object of DicomValue depending
on its value multiplicity and value representation.
|
static java.lang.String |
fArrayToString(float[] fArray)
This method generates string from a float array
|
static java.lang.String |
iArrayToString(int[] iArray)
This method generates string from a int array
|
static java.lang.String |
objectToString(java.lang.Object objValue)
This mehod constructs string for specified object
|
static java.lang.String |
sArrayToString(short[] sArray)
This method generates string from a short array
|
static java.lang.String[] |
stringToArray(java.lang.String str)
This method generates string array from a string.
|
static double[] |
stringTodArray(java.lang.String strdArray)
This method generates double array from a string
|
static IDataElement |
stringtoDataElement(java.lang.String strDicomValueValue,
int iGroupNumber,
int iElementNumber,
int iVRType,
ITransferSyntax objITransferSyntax,
IDictionaryReader objIDictionaryReader)
This method constructs instance of IDataElement using specified arguments and
depending on value representation and its value multiplicity.
|
static float[] |
stringTofArray(java.lang.String strfArray)
This method generates float array from a string
|
static int[] |
stringToiArray(java.lang.String striArray)
This method generates int array from a string
|
static java.lang.Object |
stringToObject(java.lang.String strValue,
int iVRType)
This method constructs instance of Object using specified arguments and
depending on value representation.
|
static short[] |
stringTosArray(java.lang.String strsArray)
This method generates short array from a string
|
public static java.lang.String[] stringToArray(java.lang.String str)
str - String from which strict array is to be generated.public static java.lang.String arrayToString(java.lang.String[] str)
str - - String array from which string to be constructed.public static java.lang.String iArrayToString(int[] iArray)
iArray - - int array from which string to be constructedpublic static int[] stringToiArray(java.lang.String striArray)
striArray - - string containing "\\" as separator from which int array to be constructedpublic static java.lang.String sArrayToString(short[] sArray)
sArray - short array from which string to be constructedpublic static short[] stringTosArray(java.lang.String strsArray)
strsArray - string containing "\\" as separator from which short array to be constructedpublic static java.lang.String fArrayToString(float[] fArray)
fArray - float array from which string to be constructedpublic static float[] stringTofArray(java.lang.String strfArray)
strfArray - string containing "\\" as separator from which float array to be constructedpublic static java.lang.String dArrayToString(double[] dArray)
dArray - double array from which string to be constructedpublic static double[] stringTodArray(java.lang.String strdArray)
strdArray - string containing "\\" as separator from which double array to be constructedpublic static java.lang.String objectToString(java.lang.Object objValue)
objValue - instance of objectpublic static java.lang.String dicomDatatoString(IDicomValue objIDicomValue)
objIDicomValue - instance of IDicomValuepublic static java.lang.Object stringToObject(java.lang.String strValue,
int iVRType)
strValue - - String from which Object to constructed.iVRType - - Value Representation of DataElementpublic static IDataElement stringtoDataElement(java.lang.String strDicomValueValue, int iGroupNumber, int iElementNumber, int iVRType, ITransferSyntax objITransferSyntax, IDictionaryReader objIDictionaryReader)
strDicomValueValue - - String from which DicomValue to constructed.iGroupNumber - - Group NumberiElementNumber - - Element NumberiVRType - - Value Representation of DataElementobjITransferSyntax - - object of TransferSyntaxobjIDictionaryReader - - object of DictionaryReader