|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet
com.pixelmed.dicom.SetOfDicomFiles
public class SetOfDicomFiles
A class to describe a set of DICOM files and their features such as SOP Class, Instance and Transfer Syntax UIDs.
| Nested Class Summary | |
|---|---|
class |
SetOfDicomFiles.DicomFile
|
| Constructor Summary | |
|---|---|
SetOfDicomFiles()
Construct an empty set of DICOM files. |
|
SetOfDicomFiles(AbstractList<String> paths)
Construct a set of DICOM files from a list of String path names by reading each file's metaheader, +/- entire attribute list, as necessary. |
|
SetOfDicomFiles(String[] paths)
Construct a set of DICOM files from an array of String path names by reading each file's metaheader, +/- entire attribute list, as necessary. |
|
| Method Summary | |
|---|---|
SetOfDicomFiles.DicomFile |
add(File file)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary. |
SetOfDicomFiles.DicomFile |
add(String fileName)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary. |
SetOfDicomFiles.DicomFile |
add(String fileName,
boolean keepList)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary. |
SetOfDicomFiles.DicomFile |
add(String fileName,
boolean keepList,
boolean keepPixelData)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary. |
SetOfDicomFiles.DicomFile |
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 |
|---|
public SetOfDicomFiles(AbstractList<String> paths)
Construct a set of DICOM files from a list of String path names by reading each file's metaheader, +/- entire attribute list, as necessary.
paths - a list of String DICOM file names (e.g., a Vector or an ArrayList)public SetOfDicomFiles(String[] paths)
Construct a set of DICOM files from an array of String path names by reading each file's metaheader, +/- entire attribute list, as necessary.
paths - a Vector of String DICOM file namespublic SetOfDicomFiles()
Construct an empty set of DICOM files.
| Method Detail |
|---|
public Set getSetOfSOPClassUIDs()
public String toString()
Return a String representing this object's value.
toString in class AbstractCollectionpublic SetOfDicomFiles.DicomFile 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.
fileName - a DICOM file
public SetOfDicomFiles.DicomFile add(File file)
throws IOException
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.
file - a DICOM file
IOException
public SetOfDicomFiles.DicomFile add(String fileName,
boolean keepList)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
fileName - a DICOM filekeepList - whether or not to keep the entire attribute list memory resident
public SetOfDicomFiles.DicomFile add(String fileName,
boolean keepList,
boolean keepPixelData)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
fileName - a DICOM filekeepList - whether or not to keep the entire attribute list (excluding pixel data unless requested) memory residentkeepPixelData - whether or not to keep the pixel data memory resident as well
public SetOfDicomFiles.DicomFile add(String fileName,
String sopClassUID,
String sopInstanceUID,
String transferSyntaxUID)
Add a DICOM file with the specified attributes.
fileName - a DICOM file
public AttributeList[] getAttributeLists()
Get the attribute lists for all files, if they were kept during creation.
public static void main(String[] arg)
For testing, read all DICOM files and build a set of them.
arg - the filenames
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||