|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.goldenhammer.dicom.dcm4che.DCM4CHECommand
com.goldenhammer.dicom.dcm4che.CStoreImage
Implementation of the CStore command for the DCM4CHE DICOM Toolkit.
Field Summary |
Fields inherited from class com.goldenhammer.dicom.dcm4che.DCM4CHECommand |
aFactory, association, oFactory, properties |
Constructor Summary | |
CStoreImage(java.util.Properties properties)
Constructor |
Method Summary | |
void |
close()
This method completes all necessary steps to close this command down |
void |
execute()
Executes the CStore DICOM command using the DCM4CHE Toolkit. |
java.lang.String |
getImageUID()
Returns the DICOM UID for the image being stored. |
void |
setHeaderData(DICOMHeaderData headerData)
Sets new DICOM header data for the image being stored. |
void |
setImage(java.io.File imageFile)
Sets the image for this command to store. |
Methods inherited from class com.goldenhammer.dicom.dcm4che.DCM4CHECommand |
close, openActiveAssociaton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CStoreImage(java.util.Properties properties) throws java.io.IOException, DCM4CHEException
properties
- the properties for this command to use
java.io.IOException
- thrown if there is problem connecting
DCM4CHEException
- thrown if there is a problem with dcm4che connectionsMethod Detail |
public void execute() throws java.lang.Exception
execute
in interface Command
java.lang.Exception
- if a problem occurs during executionCommand.execute()
public java.lang.String getImageUID()
public void setHeaderData(DICOMHeaderData headerData)
setHeaderData
in interface CStoreImageCommand
headerData
- the new header data for the image.public void setImage(java.io.File imageFile) throws java.lang.Exception
setImage
in interface CStoreImageCommand
imageFile
- the file where the image is located
java.io.IOException
- if errors occur while reading the file
DCM4CHEException
java.lang.Exception
- if any problems are encountered opening the fileCStoreImageCommand.setImage(java.io.File)
public void close() throws java.lang.InterruptedException, java.io.IOException
Command
close
in interface Command
java.io.IOException
- thrown if this command cannot be closed
java.lang.InterruptedException
- thrown if this command cannot be closed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |