|
|||||||||
| 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.OtherWordString
public class OtherWordString
Other Word String (OW) DataElement
| Constructor Summary | |
|---|---|
OtherWordString(DicomTag t)
Construct an (empty) attribute. |
|
| Method Summary | |
|---|---|
short[] |
getShortValues()
Get the values of this attribute as a short array. |
ValueRepresentation |
getValueRepresentation()
Return the value representation of this data element |
byte[] |
getVR()
Deprecated. Get the value representation of this attribute (OW). |
boolean |
isAvailableAsString()
used to check if the element's value can be available as a string. |
void |
read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
|
void |
setValues(short[] v)
Replace any existing values with the supplied array of short. |
String |
toString()
Dump the contents of the attribute as a human-readable string. |
void |
write(DicomOutputStream o)
Write the entire attribute (including values) to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OtherWordString(DicomTag t)
Construct an (empty) attribute.
t - the tag of the attribute| Method Detail |
|---|
public short[] getShortValues()
throws DicomException
DataElementGet the values of this attribute as a short array.
getShortValues in class DataElementDicomExceptionpublic ValueRepresentation getValueRepresentation()
getValueRepresentation in class DataElementpublic byte[] getVR()
public boolean isAvailableAsString()
DataElement
isAvailableAsString in class DataElement
public void read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
throws IOException,
DataElementException
read in class DataElementvl - i -
IOException
DicomException
DataElementException
public void write(DicomOutputStream o)
throws IOException,
DataElementException
DataElementWrite the entire attribute (including values) to the output stream.
write in class DataElemento -
IOException
DicomException
DataElementException
public void setValues(short[] v)
throws DataElementException
DataElement
setValues in class DataElementv -
DicomException
DataElementExceptionpublic String toString()
DataElementDump the contents of the attribute as a human-readable string.
No new line is appended.
The result is of the form:
(0xgggg,0xeeee) VR=<XX> VL=<0xnnnn> <...>
For example:
(0x0018,0x0020) VR=<CS> VL=<0x2> <GR>
toString in class DataElementString value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||