Class DatabaseMediaImporter

java.lang.Object
com.pixelmed.dicom.MediaImporter
com.pixelmed.database.DatabaseMediaImporter
Direct Known Subclasses:
DicomImageViewer.OurDatabaseMediaImporter

public class DatabaseMediaImporter extends MediaImporter
  • Field Details

  • Constructor Details

  • Method Details

    • doSomethingWithDicomFileOnMedia

      protected void doSomethingWithDicomFileOnMedia(String mediaFileName)

      Makes a copy of the DICOM file in the temporary folder, reads the DICOM attributes to extract the necessary information and inserts a reference to the copied file in the database.

      If any errors are encountered during this process, the exceptions are caught, logged to stderr, and no further action is taken. Copying is not performed until after the DICOM attributes are successfully extracted, but orphan temporary copies could exist if the database insertion fails.

      Overrides:
      doSomethingWithDicomFileOnMedia in class MediaImporter
      Parameters:
      mediaFileName - the fully qualified path name to a DICOM file