|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.Attribute
com.pixelmed.dicom.StringAttribute
com.pixelmed.dicom.DecimalStringAttribute
public class DecimalStringAttribute
A concrete class specializing Attribute for
Decimal String (DS) attributes.
Though an instance of this class may be created
using its constructors, there is also a factory class, AttributeFactory.
Attribute,
AttributeFactory,
AttributeList| Field Summary |
|---|
| Fields inherited from class com.pixelmed.dicom.StringAttribute |
|---|
specificCharacterSet |
| Fields inherited from class com.pixelmed.dicom.Attribute |
|---|
valueLength, valueMultiplicity |
| Constructor Summary | |
|---|---|
DecimalStringAttribute(AttributeTag t)
Construct an (empty) attribute. |
|
DecimalStringAttribute(AttributeTag t,
long vl,
DicomInputStream i)
Read an attribute from an input stream. |
|
DecimalStringAttribute(AttributeTag t,
Long vl,
DicomInputStream i)
Read an attribute from an input stream. |
|
| Method Summary | |
|---|---|
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(long v)
Add a(nother) long value after any existing values of this attribute. |
String[] |
getStringValues(NumberFormat format)
Get the values of this attribute as strings. |
byte[] |
getVR()
Get the value representation of this attribute (DS). |
| Methods inherited from class com.pixelmed.dicom.StringAttribute |
|---|
addValue, addValue, addValue, addValue, getByteValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getOriginalStringValues, getPadByte, getPaddedVL, getShortValues, getSpecificCharacterSet, removeValues, setSpecificCharacterSet, toString, translateByteArrayToString, translateStringToByteArray, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalStringAttribute(AttributeTag t)
Construct an (empty) attribute.
t - the tag of the attribute
public DecimalStringAttribute(AttributeTag t,
long vl,
DicomInputStream i)
throws IOException,
DicomException
Read an attribute from an input stream.
t - the tag of the attributevl - the value length of the attributei - the input stream
IOException
DicomException
public DecimalStringAttribute(AttributeTag t,
Long vl,
DicomInputStream i)
throws IOException,
DicomException
Read an attribute from an input stream.
t - the tag of the attributevl - the value length of the attributei - the input stream
IOException
DicomException| Method Detail |
|---|
public byte[] getVR()
Get the value representation of this attribute (DS).
getVR in class AttributeValueRepresentation
public String[] getStringValues(NumberFormat format)
throws DicomException
StringAttributeGet the values of this attribute as strings.
The strings are first cleaned up into a canonical form, to remove leading and trailing padding.
getStringValues in class StringAttributeformat - the format to use for each numerical or decimal value
String
DicomException
public void addValue(long v)
throws DicomException
Attribute
addValue in class StringAttributev -
DicomException
public void addValue(float v)
throws DicomException
Attribute
addValue in class StringAttributev -
DicomException
public void addValue(double v)
throws DicomException
Attribute
addValue in class StringAttributev -
DicomException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||