org.dicom4j.data.elements
Class DecimalString

java.lang.Object
  extended by org.dicom4j.data.elements.support.DataElement
      extended by org.dicom4j.data.elements.support.StringElement
          extended by org.dicom4j.data.elements.DecimalString

public class DecimalString
extends StringElement

Decimal String (DS) element

Since:
0.0.0
Author:
Laurent Lecomte

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 org.dicom4j.data.elements.support.DataElement
addValue, addValue, addValue, addValue, addValue, addValue, getByteValues, getDelimitedStringValues, getDelimitedStringValues, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrDefault, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrEmptyString, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDelimitedStringValuesOrNull, getDoubleValues, getDoubleValues, getFloatValues, getIntegerValues, getIntegerValues, getLongValues, getLongValues, getName, getOriginalStringValues, getShortValues, getSingleDoubleValueOrDefault, getSingleDoubleValueOrDefault, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValue, getSingleIntegerValueOrDefault, getSingleLongValueOrDefault, getSingleLongValueOrDefault, getSingleStringValue, getSingleStringValue, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrDefault, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrEmptyString, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getSingleStringValueOrNull, getStringValues, getStringValues, getStringValues, getTag, isAvailableAsString, isGroupLength, isValid, read, removeValues, setValues, setValues, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalString

public DecimalString(DicomTag t)

Construct an (empty) attribute.

Parameters:
t - the tag of the attribute

DecimalString

public DecimalString(DicomTag t,
                     long vl,
                     DicomInputStream i)
              throws IOException,
                     DicomException

Read an attribute from an input stream.

Parameters:
t - the tag of the attribute
vl - the value length of the attribute
i - the input stream
Throws:
IOException
DicomException
Method Detail

getStringValues

public String[] getStringValues(NumberFormat format)
                         throws DicomException
Description copied from class: StringElement

Get the values of this attribute as strings.

The strings are first cleaned up into a canonical form, to remove leading and trailing padding.

Overrides:
getStringValues in class StringElement
Parameters:
format - the format to use for each numerical or decimal value
Returns:
the values as an array of String
Throws:
DicomException

getValueRepresentation

public ValueRepresentation getValueRepresentation()
Return the value representation of this element

Specified by:
getValueRepresentation in class DataElement
Returns:
the value representation (DS)

getVR

public byte[] getVR()

Get the value representation of this attribute (DS).

Returns:
'D','S' in ASCII as a two byte array; see


Copyright © 2009 dicom4j. All Rights Reserved.