jdcm
Class DicomFile

java.lang.Object
  extended by jdcm.DicomFile

public class DicomFile
extends java.lang.Object

This class represents a DICOM Media Storage file.

See Also:
DicomGroup, DicomSet

Field Summary
protected  DicomSet dicomSet
           
protected  DicomGroup metaFile
           
 
Constructor Summary
DicomFile(DicomSet dicomSet)
          Constructs an DicomFile object, using the provided dicomSet for the data set.
DicomFile(java.io.File file)
          Constructs an DicomFile object associated with a specified Dicom file system.
DicomFile(java.lang.String fileName)
          Constructs an DicomFile object associated with a specified Dicom file system.
 
Method Summary
 java.lang.String getAffectedSOPClassUID()
          Retrieves the affected SOP Class UID contained in this Dicom file object.
 java.lang.String getAffectedSOPInstanceUID()
          Retrieves the affected SOP instance UID contained in this Dicom file object.
 DicomSet getDicomSet()
          Retrieves the data set contained in this Dicom file object.
 DicomGroup getMetaFile()
          Retrieves the metaFile contained in this Dicom file object.
 java.lang.String getTransferSyntaxUID()
          Retrieves the transfer syntax UID contained in this Dicom file object.
 void setAffectedSOPClassUID(java.lang.String affectedSOPClassUID)
          Sets the affected SOP Class UID in this Dicom file object.
 void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
          Sets the affected SOP Instance UID in this Dicom file object.
 void setTransferSyntaxUID(java.lang.String transferSyntaxUID)
          Sets the transfer Syntax UID in this Dicom file object
 java.lang.String toString()
           
 void write(java.lang.String fileName)
          Write this Dicom file object in file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dicomSet

protected DicomSet dicomSet

metaFile

protected DicomGroup metaFile
Constructor Detail

DicomFile

public DicomFile(java.io.File file)
          throws java.io.IOException
Constructs an DicomFile object associated with a specified Dicom file system.

Parameters:
file - representation of file.
Throws:
java.io.IOException - if this is not an Dicom part 10 format file.

DicomFile

public DicomFile(DicomSet dicomSet)
Constructs an DicomFile object, using the provided dicomSet for the data set.


DicomFile

public DicomFile(java.lang.String fileName)
          throws java.io.IOException
Constructs an DicomFile object associated with a specified Dicom file system.

Parameters:
fileName - path file name of Dicom file
Throws:
java.io.IOException - if this is not an Dicom part 10 format file.
Method Detail

write

public void write(java.lang.String fileName)
           throws java.io.IOException
Write this Dicom file object in file system.

Parameters:
fileName -
Throws:
java.io.IOException

getDicomSet

public DicomSet getDicomSet()
Retrieves the data set contained in this Dicom file object.


getMetaFile

public DicomGroup getMetaFile()
Retrieves the metaFile contained in this Dicom file object.


getAffectedSOPClassUID

public java.lang.String getAffectedSOPClassUID()
Retrieves the affected SOP Class UID contained in this Dicom file object.


setAffectedSOPClassUID

public void setAffectedSOPClassUID(java.lang.String affectedSOPClassUID)
Sets the affected SOP Class UID in this Dicom file object.

Parameters:
affectedSOPClassUID -

getAffectedSOPInstanceUID

public java.lang.String getAffectedSOPInstanceUID()
Retrieves the affected SOP instance UID contained in this Dicom file object.


setAffectedSOPInstanceUID

public void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
Sets the affected SOP Instance UID in this Dicom file object.

Parameters:
affectedSOPInstanceUID -

getTransferSyntaxUID

public java.lang.String getTransferSyntaxUID()
Retrieves the transfer syntax UID contained in this Dicom file object.


setTransferSyntaxUID

public void setTransferSyntaxUID(java.lang.String transferSyntaxUID)
Sets the transfer Syntax UID in this Dicom file object

Parameters:
transferSyntaxUID -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object