org.dicom4j.data.elements
Class CodeString

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.CodeString

public class CodeString
extends StringElement

Code String (CS) element

Author:
Laurent Lecomte

Constructor Summary
CodeString(DicomTag t)
           Construct an (empty) attribute.
CodeString(DicomTag t, long vl, DicomInputStream i)
           Read an attribute from an input stream.
 
Method Summary
 ValueRepresentation getValueRepresentation()
          Return the value representation of this data element (CS)
 byte[] getVR()
           Get the value representation of this attribute (CS).
 
Methods inherited from class org.dicom4j.data.elements.support.StringElement
addValue, clear, getPaddedVL, getStringValues, 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

CodeString

public CodeString(DicomTag t)

Construct an (empty) attribute.

Parameters:
t - the tag of the attribute

CodeString

public CodeString(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

getValueRepresentation

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

Specified by:
getValueRepresentation in class DataElement
Returns:
the value representation

getVR

public byte[] getVR()

Get the value representation of this attribute (CS).

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


Copyright © 2009 dicom4j. All Rights Reserved.