|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.data.elements.support.DataElement
public abstract class DataElement
abstract class that contains the core functionality for storing, accessing and maintaining values of a DICOM Attribute.
Though instances of concrete sub-classes of this abstract class may be
created using their constructors, there is also a factory class,
DataElementFactory.
DataElementFactory| Method Summary | |
|---|---|
void |
addValue(byte v)
Add a(nother) byte value after any existing values of this attribute. |
void |
addValue(double v)
Add a(nother) double value after any existing values of this attribute. |
void |
addValue(float v)
Add a(nother) float value after any existing values of this attribute. |
void |
addValue(int v)
Add a(nother) int value after any existing values of this attribute. |
void |
addValue(long v)
Add a(nother) long value after any existing values of this attribute. |
void |
addValue(short v)
Add a(nother) short value after any existing values of this attribute. |
void |
addValue(String v)
Add a(nother) String value after any existing
values of this attribute. |
void |
clear()
Clear Data contains in this Element |
byte[] |
getByteValues()
Get the values of this attribute as a byte array. |
String |
getDelimitedStringValues()
|
String |
getDelimitedStringValues(String aDefault)
Get all the string values for the attribute, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrDefault(DataSet list,
DicomTag tag,
String dflt)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrDefault(DataSet list,
DicomTag tag,
String dflt,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
String |
getDelimitedStringValuesOrDefault(String dflt,
NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter. |
String |
getDelimitedStringValuesOrEmptyString()
Get all the string values for the attribute, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrEmptyString(DataSet list,
DicomTag tag)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrEmptyString(DataSet list,
DicomTag tag,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
String |
getDelimitedStringValuesOrEmptyString(NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter. |
String |
getDelimitedStringValuesOrNull()
Get all the string values for the attribute, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrNull(DataSet list,
DicomTag tag)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
static String |
getDelimitedStringValuesOrNull(DataSet list,
DicomTag tag,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter. |
String |
getDelimitedStringValuesOrNull(NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter. |
double[] |
getDoubleValues()
Get the values of this attribute as a double array. |
static double[] |
getDoubleValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of double. |
float[] |
getFloatValues()
Get the values of this attribute as a float array. |
int[] |
getIntegerValues()
Get the values of this attribute as an int array. |
static int[] |
getIntegerValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of int. |
long[] |
getLongValues()
Get the values of this attribute as a long array. |
static long[] |
getLongValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of long. |
String |
getName()
|
String[] |
getOriginalStringValues()
Get the values of this attribute as strings, the way they were originally inserted or read. |
long |
getPaddedVL()
Get the value length of this attribute, accounting for the need for even-length padding. |
short[] |
getShortValues()
Get the values of this attribute as a short array. |
static double |
getSingleDoubleValueOrDefault(DataSet list,
DicomTag tag,
double dflt)
Get a single double value of a named attribute in an attribute list. |
double |
getSingleDoubleValueOrDefault(double dflt)
Get a single double value for the attribute. |
int |
getSingleIntegerValue()
|
static int |
getSingleIntegerValue(DataSet aDataSet,
DicomTag aTag,
int aDefault)
|
int |
getSingleIntegerValue(int aDefault)
Get a single int value for the attribute. |
static int |
getSingleIntegerValueOrDefault(DataSet list,
DicomTag tag,
int dflt)
Get a single int value of a named attribute in an attribute list. |
static long |
getSingleLongValueOrDefault(DataSet list,
DicomTag tag,
long dflt)
Get a single long value of a named attribute in an attribute list. |
long |
getSingleLongValueOrDefault(long dflt)
Get a single long value for the attribute. |
String |
getSingleStringValue()
Get a single string value If there is more than one string value, only the first is returned. |
String |
getSingleStringValue(String dflt)
Get a single string value for the attribute. |
static String |
getSingleStringValueOrDefault(DataSet aDataset,
DicomTag tag,
String aDefault)
Get a single string value for a named attribute in an attribute list. |
static String |
getSingleStringValueOrDefault(DataSet list,
DicomTag tag,
String dflt,
NumberFormat format)
Get a single string value for a named attribute in an attribute list. |
String |
getSingleStringValueOrDefault(String dflt,
NumberFormat format)
Get a single string value for the attribute. |
static String |
getSingleStringValueOrEmptyString(DataSet list,
DicomTag tag)
Get a single string value for a named attribute in an attribute list. |
static String |
getSingleStringValueOrEmptyString(DataSet list,
DicomTag tag,
NumberFormat format)
Get a single string value for a named attribute in an attribute list. |
String |
getSingleStringValueOrEmptyString(NumberFormat format)
Get a single string value for the attribute. |
String |
getSingleStringValueOrNull()
Get a single string value for the attribute. |
static String |
getSingleStringValueOrNull(DataSet list,
DicomTag tag)
Get a single string value for a named attribute in an attribute list. |
static String |
getSingleStringValueOrNull(DataSet list,
DicomTag tag,
NumberFormat format)
Get a single string value for a named attribute in an attribute list. |
String |
getSingleStringValueOrNull(NumberFormat format)
Get a single string value for the attribute. |
String[] |
getStringValues()
Get the values of this attribute as strings. |
static String[] |
getStringValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of strings. |
static String[] |
getStringValues(DataSet list,
DicomTag tag,
NumberFormat format)
Get the values of a named attribute in an attribute list, as an array of strings. |
String[] |
getStringValues(NumberFormat format)
Get the values of this attribute as strings. |
DicomTag |
getTag()
Return element's tag |
long |
getValueLength()
Gets the value length |
int |
getValueMultiplicity()
Get the value multiplicity of this element |
abstract ValueRepresentation |
getValueRepresentation()
Return the ValueRepresentation of this element |
boolean |
isAvailableAsString()
used to check if the element's value can be available as a string. |
static boolean |
isGroupLength(DataElement aDataElement)
Return true if the DataElement represent a group length element (ie: the value of Element is equal to 0x0000) |
boolean |
isValid()
check is the data of this element is Dicom compliant |
void |
read(DicomInputStream aStream,
long aLength)
Read data from a stream |
abstract void |
read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
|
void |
removeValues()
Remove any existing values, making the attribute empty (zero length). |
void |
setValues(byte[] v)
Replace any existing values with the supplied array of byte. |
void |
setValues(float[] v)
Replace any existing values with the supplied array of float. |
void |
setValues(short[] v)
Replace any existing values with the supplied array of short. |
String |
toString()
Dump the contents of the attribute as a human-readable string. |
abstract void |
write(DicomOutputStream o)
Write the entire attribute (including values) to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static String getDelimitedStringValuesOrDefault(DataSet list,
DicomTag tag,
String dflt)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, the supplied default is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the values, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there are no (valid) string values
String
public static String getDelimitedStringValuesOrDefault(DataSet list,
DicomTag tag,
String dflt,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, the supplied default is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the values, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there are no (valid) string valuesformat - the format to use for each numerical or decimal value
String
public static String getDelimitedStringValuesOrEmptyString(DataSet list,
DicomTag tag)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, an empty string is returned.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the values, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
String
public static String getDelimitedStringValuesOrEmptyString(DataSet list,
DicomTag tag,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, an empty string is returned.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the values, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to findformat - the format to use for each numerical or decimal value
String
public static String getDelimitedStringValuesOrNull(DataSet list,
DicomTag tag)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, null is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the values, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
String
public static String getDelimitedStringValuesOrNull(DataSet list,
DicomTag tag,
NumberFormat format)
Get all the string values for a named attribute in an attribute list, separated by the appropriate delimiter.
If there is no such attribute, null is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the values, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to findformat - the format to use for each numerical or decimal value
String
public static double[] getDoubleValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of double.
If there is no such attribute, null is returned.
If there is an exception trying to fetch the values, null is
returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
public static int[] getIntegerValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of int.
If there is no such attribute, null is returned.
If there is an exception trying to fetch the values, null is
returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
public static long[] getLongValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of long.
If there is no such attribute, null is returned.
If there is an exception trying to fetch the values, null is
returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
public static double getSingleDoubleValueOrDefault(DataSet list,
DicomTag tag,
double dflt)
Get a single double value of a named attribute in an attribute list.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there is no (valid) value
public static final int getSingleIntegerValue(DataSet aDataSet,
DicomTag aTag,
int aDefault)
public static int getSingleIntegerValueOrDefault(DataSet list,
DicomTag tag,
int dflt)
Get a single int value of a named attribute in an attribute list.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there is no (valid) value
public static long getSingleLongValueOrDefault(DataSet list,
DicomTag tag,
long dflt)
Get a single long value of a named attribute in an attribute list.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there is no (valid) value
public static String getSingleStringValueOrDefault(DataSet aDataset,
DicomTag tag,
String aDefault)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, the supplied default is returned.
If there is more than one string value, only the first is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
aDataset - the list of attributes in which to look for the attributetag - the tag of the attribute to findaDefault - what to return if there is no (valid) string value
String value
public static String getSingleStringValueOrDefault(DataSet list,
DicomTag tag,
String dflt,
NumberFormat format)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, the supplied default is returned.
If there is more than one string value, only the first is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to finddflt - what to return if there is no (valid) string valueformat - the format to use for each numerical or decimal value
String value
public static String getSingleStringValueOrEmptyString(DataSet list,
DicomTag tag)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, an empty string is returned.
If there is more than one string value, only the first is returned.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the value, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
String value
public static String getSingleStringValueOrEmptyString(DataSet list,
DicomTag tag,
NumberFormat format)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, an empty string is returned.
If there is more than one string value, only the first is returned.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the value, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to findformat - the format to use for each numerical or decimal value
String value
public static String getSingleStringValueOrNull(DataSet list,
DicomTag tag)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, null is returned.
If there is more than one string value, only the first is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the value, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
String value
public static String getSingleStringValueOrNull(DataSet list,
DicomTag tag,
NumberFormat format)
Get a single string value for a named attribute in an attribute list.
If there is no such attribute, null is returned.
If there is more than one string value, only the first is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the value, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to findformat - the format to use for each numerical or decimal value
String value
public static String[] getStringValues(DataSet list,
DicomTag tag)
Get the values of a named attribute in an attribute list, as an array of strings.
If there is no such attribute, null is returned.
If there is an exception trying to fetch the values, null is
returned.
The strings may have been cleaned up into a canonical form, such as to remove padding.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to find
String
public static String[] getStringValues(DataSet list,
DicomTag tag,
NumberFormat format)
Get the values of a named attribute in an attribute list, as an array of strings.
If there is no such attribute, null is returned.
If there is an exception trying to fetch the values, null is
returned.
The strings may have been cleaned up into a canonical form, such as to remove padding.
list - the list of attributes in which to look for the attributetag - the tag of the attribute to findformat - the format to use for each numerical or decimal value
Stringpublic static boolean isGroupLength(DataElement aDataElement)
aDataElement -
public void addValue(byte v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(double v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(float v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(int v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(long v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(short v)
throws DicomException
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute class
public void addValue(String v)
throws DicomException
String value after any existing
values of this attribute.
v - value to add
DicomException - thrown if value of this type is not valid for this concrete
attribute classpublic void clear()
public byte[] getByteValues()
throws DicomException
Get the values of this attribute as a byte array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)public String getDelimitedStringValues()
public String getDelimitedStringValues(String aDefault)
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the values, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
dflt - what to return if there are no (valid) string values
String
public String getDelimitedStringValuesOrDefault(String dflt,
NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the values, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
dflt - what to return if there are no (valid) string valuesformat - the format to use for each numerical or decimal value (null if
none)
Stringpublic String getDelimitedStringValuesOrEmptyString()
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the values, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
Stringpublic String getDelimitedStringValuesOrEmptyString(NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the values, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
format - the format to use for each numerical or decimal value
Stringpublic String getDelimitedStringValuesOrNull()
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, null is returned.
If there is an exception trying to fetch the values, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
Stringpublic String getDelimitedStringValuesOrNull(NumberFormat format)
Get all the string values for the attribute, separated by the appropriate delimiter.
If there is no string value, null is returned.
If there is an exception trying to fetch the values, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
format - the format to use for each numerical or decimal value
String
public double[] getDoubleValues()
throws DicomException
Get the values of this attribute as a double array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)
public float[] getFloatValues()
throws DicomException
Get the values of this attribute as a float array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)
public int[] getIntegerValues()
throws DicomException
Get the values of this attribute as an int array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)
public long[] getLongValues()
throws DicomException
Get the values of this attribute as a long array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)public String getName()
public String[] getOriginalStringValues()
throws DicomException
Get the values of this attribute as strings, the way they were originally inserted or read.
String
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)public long getPaddedVL()
Get the value length of this attribute, accounting for the need for even-length padding.
public short[] getShortValues()
throws DicomException
Get the values of this attribute as a short array.
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)public double getSingleDoubleValueOrDefault(double dflt)
Get a single double value for the attribute.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
dflt - what to return if there is no (valid) value
public int getSingleIntegerValue()
public int getSingleIntegerValue(int aDefault)
Get a single int value for the attribute.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
aDefault - what to return if there is no (valid) value
public long getSingleLongValueOrDefault(long dflt)
Get a single long value for the attribute.
If there is more than one value, only the first is returned.
If there is no value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
dflt - what to return if there is no (valid) value
public String getSingleStringValue()
Get a single string value
If there is more than one string value, only the first is returned.
If there is no string value, the supplied default is returned.
public String getSingleStringValue(String dflt)
Get a single string value for the attribute.
If there is more than one string value, only the first is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
dflt - what to return if there is no (valid) string value
String value
public String getSingleStringValueOrDefault(String dflt,
NumberFormat format)
Get a single string value for the attribute.
If there is more than one string value, only the first is returned.
If there is no string value, the supplied default is returned.
If there is an exception trying to fetch the value, the supplied default is returned.
A canonicalized (unpadded) form is returned, not the original string.
dflt - what to return if there is no (valid) string valueformat - the format to use for each numerical or decimal value (null if
none)
String valuepublic String getSingleStringValueOrEmptyString(NumberFormat format)
Get a single string value for the attribute.
If there is more than one string value, only the first is returned.
If there is no string value, an empty string is returned.
If there is an exception trying to fetch the value, an empty string is returned.
A canonicalized (unpadded) form is returned, not the original string.
format - the format to use for each numerical or decimal value
String valuepublic String getSingleStringValueOrNull()
Get a single string value for the attribute.
If there is more than one string value, only the first is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the value, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
String valuepublic String getSingleStringValueOrNull(NumberFormat format)
Get a single string value for the attribute.
If there is more than one string value, only the first is returned.
If there is no string value, null is returned.
If there is an exception trying to fetch the value, null is
returned.
A canonicalized (unpadded) form is returned, not the original string.
format - the format to use for each numerical or decimal value
String value
public String[] getStringValues()
throws DicomException
Get the values of this attribute as strings.
The strings may have been cleaned up into a canonical form, such as to remove padding.
String
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)
public String[] getStringValues(NumberFormat format)
throws DicomException
Get the values of this attribute as strings.
The strings may have been cleaned up into a canonical form, such as to remove padding as well as numbers formatted.
format - the format to use for each numerical or decimal value
String
DicomException - thrown if values are not available (such as not supported for
this concrete attribute class)public DicomTag getTag()
Return element's tag
public long getValueLength()
Gets the value length
public int getValueMultiplicity()
Get the value multiplicity of this element
public abstract ValueRepresentation getValueRepresentation()
ValueRepresentation of this element
ValueRepresentationpublic boolean isValid()
check is the data of this element is Dicom compliant
public void read(DicomInputStream aStream,
long aLength)
throws IOException,
DicomException
aStream - the streamaLength - the length of data to read
IOException
DicomException
public abstract void read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
throws IOException,
DicomException
IOException
DicomException
public void removeValues()
throws DicomException
Remove any existing values, making the attribute empty (zero length).
DicomException
public void setValues(byte[] v)
throws DicomException
v - the array of new values
DicomException - thrown if values of this type are not valid for this concrete
attribute class
public void setValues(float[] v)
throws DicomException
v - the array of new values
DicomException - thrown if values of this type are not valid for this concrete
attribute class
public void setValues(short[] v)
throws DicomException
v - the array of new values
DicomException - thrown if values of this type are not valid for this concrete
attribute classpublic String toString()
Dump the contents of the attribute as a human-readable string.
No new line is appended.
The result is of the form:
(0xgggg,0xeeee) VR=<XX> VL=<0xnnnn> <...>
For example:
(0x0018,0x0020) VR=<CS> VL=<0x2> <GR>
toString in class ObjectString value
public abstract void write(DicomOutputStream o)
throws DicomException,
IOException
Write the entire attribute (including values) to the output stream.
o - the output stream
IOException
DicomExceptionpublic boolean isAvailableAsString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||