Package com.pixelmed.apps
Class MergeConcatenationInstances.OurMediaImporter
- java.lang.Object
-
- com.pixelmed.dicom.MediaImporter
-
- com.pixelmed.apps.MergeConcatenationInstances.OurMediaImporter
-
- Enclosing class:
- MergeConcatenationInstances
protected class MergeConcatenationInstances.OurMediaImporter extends MediaImporter
-
-
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 boolean
acceptAnyTransferSyntax
protected boolean
canUseBzip
-
Fields inherited from class com.pixelmed.dicom.MediaImporter
logger, mediaDirectoryPath, progressBar, progressBarUpdater, terminateAfterIdentifyingGroup
-
-
Constructor Summary
Constructors Constructor Description OurMediaImporter(MessageLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)
Do something with the referenced DICOM file that has been encountered.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.-
Methods inherited from class com.pixelmed.dicom.MediaImporter
choosePathAndImportDicomFiles, choosePathAndImportDicomFiles, doSomethingWithDicomFileOnMedia, doSomethingWithUnwantedFileOnMedia, getDirectory, importDicomFiles, logLn, main
-
-
-
-
Constructor Detail
-
OurMediaImporter
public OurMediaImporter(MessageLogger logger)
-
-
Method Detail
-
doSomethingWithDicomFileOnMedia
protected void doSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)
Description copied from class:MediaImporter
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, unless
doSomethingWithDicomFileOnMedia(String mediaFileName,String transferSyntaxUID,String sopClassUID)
has been overridden instead. The default method does nothing."Wanted" files are those that are DICOM files for which
isOKToImport(String sopClassUID,String transferSyntaxUID)
returns true.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
-
isOKToImport
protected boolean isOKToImport(java.lang.String sopClassUID, java.lang.String transferSyntaxUID)
Description copied from class:MediaImporter
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
- the SOP Class UID of the filetransferSyntaxUID
- the Transfer Syntax UID of the file- Returns:
- true if is suitable
-
-