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.Statusname, sopClass, sopInstanceUID, status, throwable, transferSyntaxEXCEPTION, 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, setThrowablepublic DicomObject readDicomObject() throws DicomException, java.io.IOException
readDicomObject in interface CStoreItemRequestreadDicomObject in class AbstractCStoreItemRequestDicomExceptionjava.io.IOExceptionpublic long getSize()
CStoreItemRequestgetSize in interface CStoreItemRequestgetSize in class AbstractCStoreItemRequestpublic java.lang.String getSopClass()
CStoreItemRequestgetSopClass in interface CStoreItemRequestgetSopClass in class AbstractCStoreItemRequestpublic java.lang.String getSopInstanceUID()
CStoreItemRequestgetSopInstanceUID in interface CStoreItemRequestgetSopInstanceUID in class AbstractCStoreItemRequestpublic CStoreItemRequest.Status getStatus()
CStoreItemRequestgetStatus in interface CStoreItemRequestgetStatus in class AbstractCStoreItemRequestpublic java.lang.Throwable getThrowable()
CStoreItemRequestgetThrowable in interface CStoreItemRequestgetThrowable in class AbstractCStoreItemRequestpublic java.lang.String getTransferSyntax()
CStoreItemRequestgetTransferSyntax in interface CStoreItemRequestgetTransferSyntax in class AbstractCStoreItemRequestpublic java.io.File getFile()