public class SetOfDicomFiles extends java.util.HashSet<SetOfDicomFiles.DicomFile>
A class to describe a set of DICOM files and their features such as SOP Class, Instance and Transfer Syntax UIDs.
Modifier and Type | Class and Description |
---|---|
class |
SetOfDicomFiles.DicomFile |
Constructor and Description |
---|
SetOfDicomFiles()
Construct an empty set of DICOM files.
|
SetOfDicomFiles(java.util.AbstractList<java.lang.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(java.util.AbstractList<java.lang.String> paths,
boolean keepList,
boolean keepPixelData)
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(java.lang.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.
|
SetOfDicomFiles(java.lang.String[] paths,
boolean keepList,
boolean keepPixelData)
Construct a set of DICOM files from an array of String path names by reading each file's metaheader, +/- entire attribute list, as necessary
|
Modifier and Type | Method and Description |
---|---|
SetOfDicomFiles.DicomFile |
add(java.io.File file)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
|
SetOfDicomFiles.DicomFile |
add(java.lang.String fileName)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
|
SetOfDicomFiles.DicomFile |
add(java.lang.String fileName,
boolean keepList)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
|
SetOfDicomFiles.DicomFile |
add(java.lang.String fileName,
boolean keepList,
boolean keepPixelData)
Add a DICOM file by reading its metaheader, +/- entire attribute list, as necessary.
|
SetOfDicomFiles.DicomFile |
add(java.lang.String fileName,
java.lang.String sopClassUID,
java.lang.String sopInstanceUID,
java.lang.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.
|
java.util.Set |
getSetOfSOPClassUIDs() |
static void |
main(java.lang.String[] arg)
For testing, read all DICOM files and build a set of them.
|
java.lang.String |
toString()
Return a String representing this object's value.
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
addAll, containsAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
public SetOfDicomFiles()
Construct an empty set of DICOM files.
public SetOfDicomFiles(java.util.AbstractList<java.lang.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(java.util.AbstractList<java.lang.String> paths, boolean keepList, boolean keepPixelData)
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)keepList
- 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 wellpublic SetOfDicomFiles(java.lang.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
- an array of String DICOM file namespublic SetOfDicomFiles(java.lang.String[] paths, boolean keepList, boolean keepPixelData)
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
- an array of String DICOM file nameskeepList
- 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 wellpublic SetOfDicomFiles.DicomFile add(java.io.File file) throws java.io.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 filejava.io.IOException
public SetOfDicomFiles.DicomFile add(java.lang.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 filepublic SetOfDicomFiles.DicomFile add(java.lang.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 residentpublic SetOfDicomFiles.DicomFile add(java.lang.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 wellpublic SetOfDicomFiles.DicomFile add(java.lang.String fileName, java.lang.String sopClassUID, java.lang.String sopInstanceUID, java.lang.String transferSyntaxUID)
Add a DICOM file with the specified attributes.
fileName
- a DICOM filepublic AttributeList[] getAttributeLists()
Get the attribute lists for all files, if they were kept during creation.
public java.util.Set getSetOfSOPClassUIDs()
public static void main(java.lang.String[] arg)
For testing, read all DICOM files and build a set of them.
arg
- the filenamespublic java.lang.String toString()
Return a String representing this object's value.
toString
in class java.util.AbstractCollection<SetOfDicomFiles.DicomFile>