public class NetworkMediaImporter extends MediaImporter
This class is designed to support the importation of DICOM files from interchange media (such as CDs and DVDs) and their transfer over the network as C-STORE requests to a specified AE.
MediaImporter
,
DatabaseMediaImporter
Modifier and Type | Class and Description |
---|---|
protected class |
NetworkMediaImporter.OurMultipleInstanceTransferStatusHandler |
MediaImporter.MediaImporterWithFileChooserDialogThread, MediaImporter.OurReadTerminationStrategy
Modifier and Type | Field and Description |
---|---|
protected SetOfDicomFiles |
setOfDicomFiles |
logger, mediaDirectoryPath, progressBar, progressBarUpdater, terminateAfterIdentifyingGroup
Constructor and Description |
---|
NetworkMediaImporter(java.lang.String hostname,
int port,
java.lang.String calledAETitle,
java.lang.String callingAETitle,
java.lang.String pathName,
MessageLogger logger) |
Modifier and Type | Method and Description |
---|---|
protected void |
doSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)
Adds the specified file name and its characteristics to the list to be transferred.
|
static void |
main(java.lang.String[] arg)
Import DICOM files and send to the specified AE as C-STORE requests.
|
choosePathAndImportDicomFiles, choosePathAndImportDicomFiles, doSomethingWithDicomFileOnMedia, doSomethingWithUnwantedFileOnMedia, getDirectory, importDicomFiles, isOKToImport, logLn
protected SetOfDicomFiles setOfDicomFiles
public NetworkMediaImporter(java.lang.String hostname, int port, java.lang.String calledAETitle, java.lang.String callingAETitle, java.lang.String pathName, MessageLogger logger)
protected void doSomethingWithDicomFileOnMedia(java.lang.String mediaFileName)
Adds the specified file name and its characteristics to the list to be transferred.
If any errors are encountered during this process, the exceptions are caught, logged to stderr, and the file will not be transferred.
Note that the actual transfer is performed later once the characteristics of all the files to be transferred has been ascertained.
doSomethingWithDicomFileOnMedia
in class MediaImporter
mediaFileName
- the fully qualified path name to a DICOM filepublic static void main(java.lang.String[] arg)
Import DICOM files and send to the specified AE as C-STORE requests.
arg
- array of five strings - their hostname, their port, their AE Title, our AE Title,
and the path to the media or folder containing the files to import and send