Package com.pixelmed.convert
Class UnencapsulateData
java.lang.Object
com.pixelmed.convert.UnencapsulateData
A class to extract the content of a DICOM encapsulated data object into a file.
E.g., to extract an encapsulated PDF, CDA or STL file.
-
Constructor Summary
ConstructorsConstructorDescriptionUnencapsulateData
(String inputFileName, String outputFileName) Extract the content of a DICOM encapsulated data object into a file. -
Method Summary
-
Constructor Details
-
UnencapsulateData
public UnencapsulateData(String inputFileName, String outputFileName) throws FileNotFoundException, IOException, DicomException Extract the content of a DICOM encapsulated data object into a file.
The SOP Class will be automatically determined from the supplied file type.
- Parameters:
inputFileName
- DICOM file containing encapsulated dataoutputFileName
- file to write the encapsulated data to- Throws:
FileNotFoundException
- if a file cannot be foundIOException
- if there is a problem reading or writingDicomException
- if there is a problem parsing or extracting required content
-
-
Method Details
-
main
Extract the content of a DICOM encapsulated data object into a file.
- Parameters:
arg
- two parameters, the input DICOM file and the output file
-