Package com.pixelmed.apps
Class DecompressDicomFiles
- java.lang.Object
-
- com.pixelmed.dicom.MediaImporter
-
- com.pixelmed.apps.DecompressDicomFiles
-
public class DecompressDicomFiles extends MediaImporter
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
Fields Modifier and Type Field Description protected java.lang.StringoutputPath-
Fields inherited from class com.pixelmed.dicom.MediaImporter
logger, mediaDirectoryPath, progressBar, progressBarUpdater, terminateAfterIdentifyingGroup
-
-
Constructor Summary
Constructors Constructor Description DecompressDicomFiles(MessageLogger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)Do something with the referenced DICOM file that has been encountered.protected booleanisOKToImport(java.lang.String sopClassUID, java.lang.String transferSyntaxUID)Check for valid information, and that the file is not compressed or not a suitable storage object for import.static voidmain(java.lang.String[] arg)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
-
-
-
-
Constructor Detail
-
DecompressDicomFiles
public DecompressDicomFiles(MessageLogger logger)
-
-
Method Detail
-
isOKToImport
protected boolean isOKToImport(java.lang.String sopClassUID, java.lang.String transferSyntaxUID)Check for valid information, and that the file is not compressed or not a suitable storage object for import.
- Overrides:
isOKToImportin classMediaImporter- Parameters:
sopClassUID-transferSyntaxUID-- Returns:
- true if is suitable
-
doSomethingWithDicomFileOnMedia
protected void doSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)
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:
doSomethingWithDicomFileOnMediain classMediaImporter- Parameters:
mediaFileName- the fully qualified path name to a DICOM file
-
main
public static void main(java.lang.String[] arg)
Copy a set of DICOM files, decompressing them if compressed.
- Parameters:
arg- array of two strings - the input path and the output path
-
-