com.pixelmed.dicom
Class SetOfDicomFiles

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by com.pixelmed.dicom.SetOfDicomFiles
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, Set

public class SetOfDicomFiles
extends HashSet

A class to describe a set of DICOM files and their features such as SOP Class, Instance and Transfer Syntax UIDs.

See Also:
Serialized Form

Nested Class Summary
 class SetOfDicomFiles.DicomFile
           
 
Constructor Summary
SetOfDicomFiles()
           
 
Method Summary
 void add(String fileName)
          Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
 void add(String fileName, boolean keepList)
          Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
 void add(String fileName, String sopClassUID, String sopInstanceUID, String transferSyntaxUID)
          Add a DICOM file with the specified attributes.
 AttributeList[] getAttributeLists()
          Get the attribute lists for all files, if they were kept during creation.
 Set getSetOfSOPClassUIDs()
           
static void main(String[] arg)
          For testing, read all DICOM files and build a set of them.
 String toString()
          Return a String representing this object's value.
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

SetOfDicomFiles

public SetOfDicomFiles()
Method Detail

getSetOfSOPClassUIDs

public Set getSetOfSOPClassUIDs()

toString

public String toString()

Return a String representing this object's value.

Overrides:
toString in class AbstractCollection
Returns:
a string representation of the value of this object

add

public void add(String fileName)

Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.

Keeps only the minimal descriptive attributes, and not the entire attribute list (including pixel data) memory resident.

Parameters:
fileName - a DICOM file

add

public void add(String fileName,
                boolean keepList)

Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.

Parameters:
fileName - a DICOM file
keepList - whether or not to keep the entire attribute list memory resident

add

public void add(String fileName,
                String sopClassUID,
                String sopInstanceUID,
                String transferSyntaxUID)

Add a DICOM file with the specified attributes.

Parameters:
fileName - a DICOM file

getAttributeLists

public AttributeList[] getAttributeLists()

Get the attribute lists for all files, if they were kept during creation.

Returns:
an array of attribute lists, each of which will be null unless keeplists was true when created

main

public static void main(String[] arg)

For testing, read all DICOM files and build a set of them.

Parameters:
arg - the filenames