org.dicom4j.data.elements
Class SequenceItems

java.lang.Object
  extended by org.dicom4j.data.elements.SequenceItems

public class SequenceItems
extends Object

a Sequence of items contained in a SequenceOfItems (SQ)

Since:
Alpha 0.0.0
Author:
Laurent Lecomte

Constructor Summary
SequenceItems(DataSet aDataSet)
          Creates an Sequence from a DataSet
SequenceItems(DataSet aDataSet, long offset)
          Creates an Sequence from a DataSet
 
Method Summary
 void clear()
          clear the DataSet
 long getByteOffset()
           Get the byte offset of the start of this item recorded when the item was read.
 DataSet getDataSet()
          get the Dataset of this sequence of items
 String toString()
           Dump the item in a human readable form, list the contained attributes.
 void write(DicomOutputStream aOutputStream)
           Write the item (with appropriate delimiter tags) to the output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceItems

public SequenceItems(DataSet aDataSet)
Creates an Sequence from a DataSet

Parameters:
aDataSet - the dataset

SequenceItems

public SequenceItems(DataSet aDataSet,
                     long offset)
Creates an Sequence from a DataSet

Parameters:
aDataSet - the dataset
offset - the offset
Method Detail

clear

public void clear()
clear the DataSet


getByteOffset

public long getByteOffset()

Get the byte offset of the start of this item recorded when the item was read.

Returns:
the byte offset

getDataSet

public DataSet getDataSet()
get the Dataset of this sequence of items

Returns:
the DataSet

toString

public String toString()

Dump the item in a human readable form, list the contained attributes.

Overrides:
toString in class Object
Returns:
the string representing the content of the item

write

public void write(DicomOutputStream aOutputStream)
           throws DicomException,
                  IOException

Write the item (with appropriate delimiter tags) to the output stream.

Always written in undefined length form.

Parameters:
aOutputStream - the output stream
Throws:
IOException
DicomException


Copyright © 2009 dicom4j. All Rights Reserved.