Package com.pixelmed.apps
Class DecompressDicomFiles
java.lang.Object
com.pixelmed.dicom.MediaImporter
com.pixelmed.apps.DecompressDicomFiles
This class copies a set of DICOM files, decompressing them if compressed.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmed.dicom.MediaImporter
MediaImporter.MediaImporterWithFileChooserDialogThread, MediaImporter.OurReadTerminationStrategy
-
Field Summary
FieldsFields inherited from class com.pixelmed.dicom.MediaImporter
logger, mediaDirectoryPath, progressBar, progressBarUpdater, terminateAfterIdentifyingGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doSomethingWithDicomFileOnMedia
(String mediaFileName) Do something with the referenced DICOM file that has been encountered.protected boolean
isOKToImport
(String sopClassUID, String transferSyntaxUID) Check for valid information, and that the file is not compressed or not a suitable storage object for import.static void
Copy a set of DICOM files, decompressing them if compressed.Methods inherited from class com.pixelmed.dicom.MediaImporter
choosePathAndImportDicomFiles, choosePathAndImportDicomFiles, doSomethingWithDicomFileOnMedia, doSomethingWithUnwantedFileOnMedia, getDirectory, importDicomFiles, logLn
-
Field Details
-
outputPath
-
-
Constructor Details
-
DecompressDicomFiles
-
-
Method Details
-
isOKToImport
Check for valid information, and that the file is not compressed or not a suitable storage object for import.
- Overrides:
isOKToImport
in classMediaImporter
- Parameters:
sopClassUID
-transferSyntaxUID
-- Returns:
- true if is suitable
-
doSomethingWithDicomFileOnMedia
Do something with the referenced DICOM file that has been encountered.
This method needs to be implemented in a sub-class to do anything useful. The default method does nothing.
This method does not define any exceptions and hence must handle any errors locally.
- Overrides:
doSomethingWithDicomFileOnMedia
in classMediaImporter
- Parameters:
mediaFileName
- the fully qualified path name to a DICOM file
-
main
Copy a set of DICOM files, decompressing them if compressed.
- Parameters:
arg
- array of two strings - the input path and the output path
-