org.dcm4che.data
Interface DcmElement
public interface DcmElement
Element in DcmObject
.
- Since:
- March 2002
- Version:
- $Revision: 3994 $ $Date: 2006-05-18 00:10:23 +0200 (Do, 18 Mai 2006) $
- Author:
- gunter zeilinger
- See Also:
- "DICOM Part 5: Data Structures and Encoding, 7.1 Data Elements",
"DICOM Part 7: Message Exchange, 6.3.1 Command Set Structure"
tag
int tag()
vr
int vr()
vm
int vm()
- Deprecated. may return wrong number in case of multi-byte char sets;
use
vm(SpecificCharacterSet)
or for number of items/fragments
in sequences countItems()
instead.
vm
int vm(SpecificCharacterSet cs)
countItems
int countItems()
length
int length()
isEmpty
boolean isEmpty()
hashCode
int hashCode()
- Overrides:
hashCode
in class java.lang.Object
share
DcmElement share()
getByteBuffer
java.nio.ByteBuffer getByteBuffer()
getByteBuffer
java.nio.ByteBuffer getByteBuffer(java.nio.ByteOrder byteOrder)
hasDataFragments
boolean hasDataFragments()
getDataFragment
java.nio.ByteBuffer getDataFragment(int index)
getDataFragment
java.nio.ByteBuffer getDataFragment(int index,
java.nio.ByteOrder byteOrder)
getDataFragmentLength
int getDataFragmentLength(int index)
getString
java.lang.String getString(SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getString
java.lang.String getString(int index,
SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getStrings
java.lang.String[] getStrings(SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getBoundedString
java.lang.String getBoundedString(int maxLen,
SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getBoundedString
java.lang.String getBoundedString(int maxLen,
int index,
SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getBoundedStrings
java.lang.String[] getBoundedStrings(int maxLen,
SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getInt
int getInt()
throws DcmValueException
- Throws:
DcmValueException
getInt
int getInt(int index)
throws DcmValueException
- Throws:
DcmValueException
getInts
int[] getInts()
throws DcmValueException
- Throws:
DcmValueException
getTag
int getTag()
throws DcmValueException
- Throws:
DcmValueException
getTag
int getTag(int index)
throws DcmValueException
- Throws:
DcmValueException
getTags
int[] getTags()
throws DcmValueException
- Throws:
DcmValueException
getFloat
float getFloat()
throws DcmValueException
- Throws:
DcmValueException
getFloat
float getFloat(int index)
throws DcmValueException
- Throws:
DcmValueException
getFloats
float[] getFloats()
throws DcmValueException
- Throws:
DcmValueException
getDouble
double getDouble()
throws DcmValueException
- Throws:
DcmValueException
getDouble
double getDouble(int index)
throws DcmValueException
- Throws:
DcmValueException
getDoubles
double[] getDoubles()
throws DcmValueException
- Throws:
DcmValueException
getDate
java.util.Date getDate()
throws DcmValueException
- Throws:
DcmValueException
getDate
java.util.Date getDate(int index)
throws DcmValueException
- Throws:
DcmValueException
getDates
java.util.Date[] getDates()
throws DcmValueException
- Throws:
DcmValueException
getDateRange
java.util.Date[] getDateRange()
throws DcmValueException
- Throws:
DcmValueException
getPersonName
PersonName getPersonName(SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getPersonName
PersonName getPersonName(int index,
SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
getPersonNames
PersonName[] getPersonNames(SpecificCharacterSet cs)
throws DcmValueException
- Throws:
DcmValueException
addDataFragment
void addDataFragment(java.nio.ByteBuffer byteBuffer)
hasItems
boolean hasItems()
addNewItem
Dataset addNewItem()
addItem
void addItem(Dataset item)
getItem
Dataset getItem()
getItem
Dataset getItem(int index)
setStreamPosition
DcmElement setStreamPosition(long streamPos)
getStreamPosition
long getStreamPosition()