|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.data.elements.support.DataElement
org.dicom4j.data.elements.support.StringElement
org.dicom4j.data.elements.DecimalString
public class DecimalString
Decimal String (DS) element
| Constructor Summary | |
|---|---|
DecimalString(DicomTag t)
Construct an (empty) attribute. |
|
DecimalString(DicomTag t,
long vl,
DicomInputStream i)
Read an attribute from an input stream. |
|
| Method Summary | |
|---|---|
String[] |
getStringValues(NumberFormat format)
Get the values of this attribute as strings. |
ValueRepresentation |
getValueRepresentation()
Return the value representation of this element |
byte[] |
getVR()
Get the value representation of this attribute (DS). |
| Methods inherited from class org.dicom4j.data.elements.support.StringElement |
|---|
addValue, clear, getPaddedVL, getValueLength, getValueMultiplicity, read, setValue, toString, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalString(DicomTag t)
Construct an (empty) attribute.
t - the tag of the attribute
public DecimalString(DicomTag 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 String[] getStringValues(NumberFormat format)
throws DicomException
StringElementGet 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 StringElementformat - the format to use for each numerical or decimal value
String
DicomExceptionpublic ValueRepresentation getValueRepresentation()
getValueRepresentation in class DataElementpublic byte[] getVR()
Get the value representation of this attribute (DS).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||