public class FileCStoreItemRequest extends AbstractCStoreItemRequest
The SOP instance UID, SOP Class UID and transfer syntax are read from the DICOM file lazily upon first usage. The dataset of the file is instantiated in memory as a DicomObject before being sent in a C-STORE request.
CStoreItemRequest.Status
name, sopClass, sopInstanceUID, status, throwable, transferSyntax
EXCEPTION, NODICOM, VALID
Constructor and Description |
---|
FileCStoreItemRequest(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
long |
getSize()
an indication of the size (bytes) of the instance to be sent
|
java.lang.String |
getSopClass()
the SOP Class of the SOP instance to be stored
|
java.lang.String |
getSopInstanceUID()
the SOP Instance UID of the SOP instance to be stored
|
CStoreItemRequest.Status |
getStatus()
the status of this request.
|
java.lang.Throwable |
getThrowable()
a Throwable that may be encountered during the sending (or preparation of the association)
|
java.lang.String |
getTransferSyntax()
the Transfer Syntax of the SOP instance to be stored
|
DicomObject |
readDicomObject()
reads the DICOM file into a DicomObject
|
equals, getName, hashCode, setStatus, setThrowable
public DicomObject readDicomObject() throws DicomException, java.io.IOException
readDicomObject
in interface CStoreItemRequest
readDicomObject
in class AbstractCStoreItemRequest
DicomException
java.io.IOException
public long getSize()
CStoreItemRequest
getSize
in interface CStoreItemRequest
getSize
in class AbstractCStoreItemRequest
public java.lang.String getSopClass()
CStoreItemRequest
getSopClass
in interface CStoreItemRequest
getSopClass
in class AbstractCStoreItemRequest
public java.lang.String getSopInstanceUID()
CStoreItemRequest
getSopInstanceUID
in interface CStoreItemRequest
getSopInstanceUID
in class AbstractCStoreItemRequest
public CStoreItemRequest.Status getStatus()
CStoreItemRequest
getStatus
in interface CStoreItemRequest
getStatus
in class AbstractCStoreItemRequest
public java.lang.Throwable getThrowable()
CStoreItemRequest
getThrowable
in interface CStoreItemRequest
getThrowable
in class AbstractCStoreItemRequest
public java.lang.String getTransferSyntax()
CStoreItemRequest
getTransferSyntax
in interface CStoreItemRequest
getTransferSyntax
in class AbstractCStoreItemRequest
public java.io.File getFile()