public class TagReadEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
NEXT_TAG
the next tag is read.
|
static int |
READ_TAG_DATA
the data portion of the tag is read normally (default)
|
static int |
SKIP_TAG
the data portion of the tag is skipped and the tag is not added to
the dicom object
|
static int |
SKIP_TAG_DATA
he data portion of the thag is skipped and an empty tag is
added to the DicomObject
|
Modifier and Type | Method and Description |
---|---|
DataElement |
getDataElement()
returns the Data Element that is currently being read
|
int |
getDataReadStatus()
returns the read status.
|
DicomObject |
getDicomObject()
returns the DicomObject of the data element currently being read
and causing this event.
|
int |
getElement()
returns the element value of the tag read.
|
int |
getGroup()
returns the group value of the tag read.
|
java.io.InputStream |
getInputStream()
returns an inputstream positioned at the beginning of the data portion of
the tag
|
int |
getLength()
returns the length of the data portion of the tag being read.
|
long |
getLengthAsLong()
returns the length of the data portion of the tag being read as a long.
|
long |
getOffset()
returns the offset of the beginning the data element - before the first byte of
the 2 bytes of the group field - starting from
the beginning of the stream.
|
int |
getTag()
returns the DDict constant corresponding to the group,element pair
of this data element.
|
int |
getVRType()
returns the vr type of the tag read.
|
boolean |
isStopReading()
returns if reading of the stream should be stopped.
|
void |
setDataReadStatus(int dataReadStatus)
sets the read status.
|
void |
setStopReading(boolean stopReading)
sets whether the DicomReader should stop reading data elements
after processing the current data element.
|
public static final int READ_TAG_DATA
public static final int SKIP_TAG_DATA
public static final int SKIP_TAG
public static final int NEXT_TAG
public DicomObject getDicomObject()
public int getGroup()
public int getElement()
public int getTag()
public int getVRType()
public int getLength()
public long getLengthAsLong()
public java.io.InputStream getInputStream()
public DataElement getDataElement()
public int getDataReadStatus()
public void setDataReadStatus(int dataReadStatus)
dataReadStatus
- one of
public boolean isStopReading()
public void setStopReading(boolean stopReading)
stopReading
- booleanpublic long getOffset()