public class TagWriteEvent
extends java.util.EventObject
TagWriteEvent
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
NEXT_TAG
the next tag is written.
|
static int |
WRITE_TAG
instructs JDT to write the tag as it is stored in the DicomObject (default)
|
Modifier and Type | Method and Description |
---|---|
DataElement |
getDataElement()
returns the Data Element that will be written
|
int |
getDataWriteStatus()
|
DicomObject |
getDicomObject()
returns the DicomObject of the data element will be written.
|
int |
getElement()
returns the element value of the tag will be written.
|
int |
getGroup()
returns the group value of the tag that will be written.
|
int |
getLength()
returns the length of the data portion of the tag will be written.
|
long |
getOffset()
returns the offset of the current tag - before the first byte of
the tag - starting from the beginning of the stream.
|
java.io.OutputStream |
getOutputStream()
returns an outputstream positioned at the beginning of the header of
the tag
|
int |
getTag()
returns the DDict constant corresponding to the group,element pair
of the data element that will be written.
|
int |
getVRType()
returns the vr type of the tag will be written.
|
boolean |
isStopWriting()
returns if writing to the stream should be stopped.
|
void |
setDataWriteStatus(int dataWriteStatus)
sets the write status.
|
void |
setStopWriting(boolean stopWriting)
sets whether the DicomWriter should stop writing tags after processing the current tag.
|
public static final int WRITE_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 java.io.OutputStream getOutputStream()
public DataElement getDataElement()
public int getDataWriteStatus()
public void setDataWriteStatus(int dataWriteStatus)
TagWriteListener
is called.dataWriteStatus
- one of
public boolean isStopWriting()
public void setStopWriting(boolean stopWriting)
stopWriting
- booleanpublic long getOffset()