|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.dicom.DicomFileUtilities
public class DicomFileUtilities
Various static methods helpful for handling DICOM files.
| Method Summary | |
|---|---|
static boolean |
isDicomOrAcrNemaFile(File file)
Does the file contain a DICOM (or DICOM-like ACR-NEMA) dataset ? |
static boolean |
isDicomOrAcrNemaFile(String filename)
Does the file contain a DICOM (or DICOM-like ACR-NEMA) dataset ? |
static void |
main(String[] arg)
Iterate through a list of files and report which are DICOM and which are not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isDicomOrAcrNemaFile(String filename)
Does the file contain a DICOM (or DICOM-like ACR-NEMA) dataset ?
Any exceptions during attempts to read are caught and false returned.
filename - the file
public static boolean isDicomOrAcrNemaFile(File file)
Does the file contain a DICOM (or DICOM-like ACR-NEMA) dataset ?
Any exceptions during attempts to read are (silently) caught and false returned.
Note that this method may return true but DicomInputStream and AttributeList may fail
to read the file, since it may be "bad" ways that are not supported, e.g., missing TransferSyntaxUID in meta information header, etc.
Will detect files with:
Will reject everything else, including files with:
file - the file
public static void main(String[] arg)
Iterate through a list of files and report which are DICOM and which are not.
arg - a list of files to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||