Package gov.nih.mipav.model.dicomcomm
Class DICOM_PDataTF
java.lang.Object
gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
gov.nih.mipav.model.dicomcomm.DICOM_PDUType
gov.nih.mipav.model.dicomcomm.DICOM_PDataTF
Used to exchange application information (i.e. DICOM messages).
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
Java Dicom Package (com.zmed.dicom) Copyright (c) 1996-1997 Z Medical Imaging Systems, Inc. This software is provided, as is, for non-commercial educational purposes only. Use or incorporation of this software or derivative works in commercial applications requires written consent from Z Medical Imaging Systems, Inc. Z MEDICAL IMAGING SYSTEMS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR CONFORMANCE TO ANY SPECIFICATION OR STANDARD. Z MEDICAL IMAGING SYSTEMS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING OR MODIFYING THIS SOFTWARE OR ITS DERIVATIVES. ============================================================================= This software package is implemented similarly to the UC Davis public domain C++ DICOM implementation which contains the following copyright notice: Copyright (C) 1995, University of California, Davis THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND THE UNIVERSITY OF CALIFORNIA DOES NOT MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH THE USER. Copyright of the software and supporting documentation is owned by the University of California, and free access is hereby granted as a license to use this software, copy this software and prepare derivative works based upon this software. However, any distribution of this software source code or supporting documentation or derivative works (source code and supporting documentation) must include this copyright notice. The UC Davis C++ source code is publicly available from the following anonymous ftp site: ftp://imrad.ucdmc.ucdavis.edu/pub/dicom/UCDMC/
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intSize of the output dataprivate intPresentation Data Value length.private bytePresentation Data Value message header. 01H Accociate request. 02H Associate ack. 03H Associate reject. 04H PData PDU 05H Release request 06H Release response 07H Abort 10H Application context item 20H Presetation context item 21H Pr 30H Abstract Syntax sub-item 40H Trnasfer Syntax sub-item 50H User information itembytePresentation Data Value presentation context ID.private booleanFlag used to identify read message status.(package private) DICOM_CommsLinkReference to the link buffer communication link.Fields inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
itemType, length, PDUTYPE_AAbortRQ, PDUTYPE_AAssociateAC, PDUTYPE_AAssociateRJ, PDUTYPE_AAssociateRQ, PDUTYPE_AbstractSyntax, PDUTYPE_ApplicationContext, PDUTYPE_AReleaseRQ, PDUTYPE_AReleaseRSP, PDUTYPE_AsyncOpWindowSubItem, PDUTYPE_ImplementationClass, PDUTYPE_ImplementationVersion, PDUTYPE_MaximumSubLength, PDUTYPE_PDataTF, PDUTYPE_PresentationContext, PDUTYPE_PresentationContextAccept, PDUTYPE_SCPSCURoleSelect, PDUTYPE_TransferSyntax, PDUTYPE_UNKNOWN, PDUTYPE_UserInformation, RESERVED, reserved1, reserved2, reserved3, reserved4, UID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize()Cleans up memory.Gets the communication linkbuffer.booleanReturns true if the reading is complete else false.voidreadBody(DICOM_Comms connection) Reads the connection.voidsetOutgoingBlockSize(int outMaxSubLength) Sets the outgoing block size based the the Max.voidwrite(DICOM_PDUService PDU, byte presentationContextID, byte msgHeader) Writes P-DATA-TF Messages.voidwriteBody(DICOM_Comms connection) Filler because it extends DICOM_PDUType which is an abstract classMethods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUType
calcSize, readHeader, writeHeaderMethods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
convertItemTypeToString, getUID, length, read, setUID, write
-
Field Details
-
PDVPresContID
public byte PDVPresContIDPresentation Data Value presentation context ID. -
outBlockSize
int outBlockSizeSize of the output data -
PDVLength
private int PDVLengthPresentation Data Value length. -
PDVMsgHeader
private byte PDVMsgHeaderPresentation Data Value message header. 01H Accociate request. 02H Associate ack. 03H Associate reject. 04H PData PDU 05H Release request 06H Release response 07H Abort 10H Application context item 20H Presetation context item 21H Pr 30H Abstract Syntax sub-item 40H Trnasfer Syntax sub-item 50H User information item -
readMessageStatus
private boolean readMessageStatusFlag used to identify read message status. Default is false. -
vrLinkedBuffer
DICOM_CommsLink vrLinkedBufferReference to the link buffer communication link.
-
-
Constructor Details
-
DICOM_PDataTF
public DICOM_PDataTF()Creates a new DICOM_PDataTF object.
-
-
Method Details
-
getVRLinkedBuffer
Gets the communication linkbuffer.- Returns:
- DICOM_CommsLink
-
finalize
public void finalize()Cleans up memory. -
isReadComplete
public boolean isReadComplete()Returns true if the reading is complete else false.- Returns:
- true when reading of the connection is complete
-
readBody
Reads the connection.- Specified by:
readBodyin classDICOM_PDUTypeBase- Parameters:
connection- DOCUMENT ME!Connection- to the DICOM buffer.- Throws:
DICOM_Exception- Throws _PDV length exceeds pDataTF length_ if data is corrupted.
-
setOutgoingBlockSize
public void setOutgoingBlockSize(int outMaxSubLength) Sets the outgoing block size based the the Max. Sub. Length- Parameters:
outMaxSubLength- The maximum sublength
-
write
public void write(DICOM_PDUService PDU, byte presentationContextID, byte msgHeader) throws DICOM_Exception Writes P-DATA-TF Messages.- Parameters:
PDU- The PDUpresentationContextID- The presentation context ID.msgHeader- The message header.- Throws:
DICOM_Exception- Indicates error writing PData information.
-
writeBody
Filler because it extends DICOM_PDUType which is an abstract class- Specified by:
writeBodyin classDICOM_PDUTypeBase- Parameters:
connection- Filler- Throws:
DICOM_Exception- Filler
-