|
|||||||||
| 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.DateTimeAttribute
public class DateTimeAttribute
A concrete class specializing Attribute for
Date Time (DT) 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 | |
|---|---|
DateTimeAttribute(AttributeTag t)
Construct an (empty) attribute. |
|
DateTimeAttribute(AttributeTag t,
long vl,
DicomInputStream i)
Read an attribute from an input stream. |
|
DateTimeAttribute(AttributeTag t,
Long vl,
DicomInputStream i)
Read an attribute from an input stream. |
|
| Method Summary | |
|---|---|
static String |
getFormattedString(Date date)
Get a DICOM format DT String value from a Java Date. |
byte[] |
getVR()
Get the value representation of this attribute (DT). |
| Methods inherited from class com.pixelmed.dicom.StringAttribute |
|---|
addValue, addValue, addValue, addValue, addValue, addValue, addValue, getByteValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getOriginalStringValues, getPadByte, getPaddedVL, getSpecificCharacterSet, getStringValues, 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 DateTimeAttribute(AttributeTag t)
Construct an (empty) attribute.
t - the tag of the attribute
public DateTimeAttribute(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 DateTimeAttribute(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 (DT).
getVR in class AttributeValueRepresentationpublic static String getFormattedString(Date date)
Get a DICOM format DT String value from a Java Date.
date - the date to format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||