|
|||||||||
| 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.OtherByteString
public class OtherByteString
Other Byte (OB) DataElement
| Constructor Summary | |
|---|---|
OtherByteString(DicomTag aTag)
Creates an empty element |
|
| Method Summary | |
|---|---|
void |
clear()
Clear Data contains in this Element |
byte[] |
getByteValues()
Get the values of this attribute as a byte array. |
long |
getPaddedVL()
Get the value length of this attribute, accounting for the need for even-length padding. |
int |
getValueMultiplicity()
Get the value multiplicity of this element |
ValueRepresentation |
getValueRepresentation()
Return the value representation of this element |
byte[] |
getVR()
Get the value representation of this attribute (OB). |
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(byte[] v)
Replace any existing values with the supplied array of byte. |
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 OtherByteString(DicomTag aTag)
Creates an empty element
aTag - the tag of the element| Method Detail |
|---|
public void clear()
DataElement
clear in class DataElement
public byte[] getByteValues()
throws DicomException
DataElementGet the values of this attribute as a byte array.
getByteValues in class DataElementDicomExceptionpublic long getPaddedVL()
DataElementGet the value length of this attribute, accounting for the need for even-length padding.
getPaddedVL in class DataElementpublic int getValueMultiplicity()
DataElementGet the value multiplicity of this element
getValueMultiplicity in class DataElementpublic ValueRepresentation getValueRepresentation()
getValueRepresentation in class DataElementpublic byte[] getVR()
Get the value representation of this attribute (OB).
public void read(DicomInputStream aStream,
long aLength,
SpecificCharacterSet aCharacterSet)
throws IOException,
DicomException
read in class DataElementvl - i -
IOException
DicomException
public void setValues(byte[] v)
throws DicomException
DataElement
setValues in class DataElementv -
DicomExceptionpublic boolean isAvailableAsString()
DataElement
isAvailableAsString in class DataElementpublic 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
public void write(DicomOutputStream o)
throws DicomException,
IOException
DataElementWrite the entire attribute (including values) to the output stream.
write in class DataElemento -
IOException
DicomException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||