public class StreamedFileCStoreItemRequest extends AbstractCStoreItemRequest implements DeferredCStoreItemRequest
A DeferredCStoreItemRequest that is initialized from an InputStream of a DICOM Part 10 file.
This class is used by CStoreSCUFactory.createMultiCStoreSCU(String, int, String, String, Iterator, ImmutablePair[])
and should not be instantiated directly. The class reads the preamble and file meta information of the
DICOM Part10 file lazily when the sop class, transfer syntax or sop instance of the file are retrieved.
The specified inputstream is positioned at the beginning of the group following the file meta information
CStoreItemRequest.Statusname, sopClass, sopInstanceUID, status, throwable, transferSyntaxEXCEPTION, NODICOM, VALID| Constructor and Description |
|---|
StreamedFileCStoreItemRequest(java.io.InputStream inputStream)
Callers should not instantiate this class directly but use
CStoreSCUFactory.createMultiCStoreSCU(String, int, String, String, Iterator, ImmutablePair[]). |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream()
returns an InputStream of the DICOM dataset to be stored.
|
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.String |
getTransferSyntax()
the Transfer Syntax of the SOP instance to be stored
|
DicomObject |
readDicomObject()
returns the DicomObject that will be sent in the C-STORE
|
void |
setSize(long size)
will be called as soon as the length of the item is known
|
equals, getName, getThrowable, hashCode, setStatus, setThrowableclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetName, getThrowable, setStatus, setThrowablepublic StreamedFileCStoreItemRequest(java.io.InputStream inputStream)
CStoreSCUFactory.createMultiCStoreSCU(String, int, String, String, Iterator, ImmutablePair[]).inputStream - inputstream of a DICOM Part10 filepublic DicomObject readDicomObject() throws DicomException, java.io.IOException
CStoreItemRequestreadDicomObject in interface CStoreItemRequestreadDicomObject in class AbstractCStoreItemRequestDicomExceptionjava.io.IOExceptionpublic java.io.InputStream getInputStream()
DeferredCStoreItemRequestgetInputStream in interface DeferredCStoreItemRequestpublic CStoreItemRequest.Status getStatus()
CStoreItemRequestgetStatus in interface CStoreItemRequestgetStatus 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 java.lang.String getTransferSyntax()
CStoreItemRequestgetTransferSyntax in interface CStoreItemRequestgetTransferSyntax in class AbstractCStoreItemRequestpublic long getSize()
CStoreItemRequestgetSize in interface CStoreItemRequestgetSize in class AbstractCStoreItemRequestpublic void setSize(long size)
DeferredCStoreItemRequestsetSize in interface DeferredCStoreItemRequest