Package gov.nih.mipav.model.dicomcomm
Class DICOM_PDUTypeBase
java.lang.Object
gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
- Direct Known Subclasses:
DICOM_PDUItemType,DICOM_PDUType
DICOMPDUTypeBase abstract base class that is extended by DICOMPDUType and DICOMPDUItemType.
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 TypeFieldDescriptionprotected byteDOCUMENT ME!protected intDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!static final byteDOCUMENT ME!protected byteDOCUMENT ME!protected byteDOCUMENT ME!protected byteDOCUMENT ME!protected byteDOCUMENT ME!protected StringDOCUMENT ME! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intcalcSize()These methods must be implemented by each class that extends this class.static StringconvertItemTypeToString(byte itemType) Converts item type to a readable string.getUID()Gets the UID for a simple PDU type.intlength()Calculates the PDU item's body size (not including the header).voidread(DICOM_Comms connection) Reads the header and body of the PDU message from the connection.abstract voidreadBody(DICOM_Comms connection) DOCUMENT ME!abstract bytereadHeader(DICOM_Comms connection) DOCUMENT ME!voidSets the UID for a simple PDU type.voidwrite(DICOM_Comms connection) Writes the header and body of the PDU messages.abstract voidwriteBody(DICOM_Comms connection) DOCUMENT ME!abstract voidwriteHeader(DICOM_Comms connection) DOCUMENT ME!
-
Field Details
-
RESERVED
public static final byte RESERVEDDOCUMENT ME!- See Also:
-
PDUTYPE_UNKNOWN
public static final byte PDUTYPE_UNKNOWNDOCUMENT ME!- See Also:
-
PDUTYPE_AAssociateRQ
public static final byte PDUTYPE_AAssociateRQDOCUMENT ME!- See Also:
-
PDUTYPE_AAssociateAC
public static final byte PDUTYPE_AAssociateACDOCUMENT ME!- See Also:
-
PDUTYPE_AAssociateRJ
public static final byte PDUTYPE_AAssociateRJDOCUMENT ME!- See Also:
-
PDUTYPE_PDataTF
public static final byte PDUTYPE_PDataTFDOCUMENT ME!- See Also:
-
PDUTYPE_AReleaseRQ
public static final byte PDUTYPE_AReleaseRQDOCUMENT ME!- See Also:
-
PDUTYPE_AReleaseRSP
public static final byte PDUTYPE_AReleaseRSPDOCUMENT ME!- See Also:
-
PDUTYPE_AAbortRQ
public static final byte PDUTYPE_AAbortRQDOCUMENT ME!- See Also:
-
PDUTYPE_ApplicationContext
public static final byte PDUTYPE_ApplicationContextDOCUMENT ME!- See Also:
-
PDUTYPE_PresentationContext
public static final byte PDUTYPE_PresentationContextDOCUMENT ME!- See Also:
-
PDUTYPE_PresentationContextAccept
public static final byte PDUTYPE_PresentationContextAcceptDOCUMENT ME!- See Also:
-
PDUTYPE_AbstractSyntax
public static final byte PDUTYPE_AbstractSyntaxDOCUMENT ME!- See Also:
-
PDUTYPE_TransferSyntax
public static final byte PDUTYPE_TransferSyntaxDOCUMENT ME!- See Also:
-
PDUTYPE_UserInformation
public static final byte PDUTYPE_UserInformationDOCUMENT ME!- See Also:
-
PDUTYPE_MaximumSubLength
public static final byte PDUTYPE_MaximumSubLengthDOCUMENT ME!- See Also:
-
PDUTYPE_ImplementationClass
public static final byte PDUTYPE_ImplementationClassDOCUMENT ME!- See Also:
-
PDUTYPE_AsyncOpWindowSubItem
public static final byte PDUTYPE_AsyncOpWindowSubItemDOCUMENT ME!- See Also:
-
PDUTYPE_SCPSCURoleSelect
public static final byte PDUTYPE_SCPSCURoleSelectDOCUMENT ME!- See Also:
-
PDUTYPE_ImplementationVersion
public static final byte PDUTYPE_ImplementationVersionDOCUMENT ME!- See Also:
-
itemType
protected byte itemTypeDOCUMENT ME! -
length
protected int lengthDOCUMENT ME! -
reserved1
protected byte reserved1DOCUMENT ME! -
reserved2
protected byte reserved2DOCUMENT ME! -
reserved3
protected byte reserved3DOCUMENT ME! -
reserved4
protected byte reserved4DOCUMENT ME! -
UID
DOCUMENT ME!
-
-
Constructor Details
-
DICOM_PDUTypeBase
public DICOM_PDUTypeBase()
-
-
Method Details
-
calcSize
public abstract int calcSize()These methods must be implemented by each class that extends this class.- Returns:
- DOCUMENT ME!
-
readBody
DOCUMENT ME!- Parameters:
connection- DOCUMENT ME!- Throws:
DICOM_Exception- DOCUMENT ME!
-
readHeader
DOCUMENT ME!- Parameters:
connection- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
DICOM_Exception- DOCUMENT ME!
-
writeBody
DOCUMENT ME!- Parameters:
connection- DOCUMENT ME!- Throws:
DICOM_Exception- DOCUMENT ME!
-
writeHeader
DOCUMENT ME!- Parameters:
connection- DOCUMENT ME!- Throws:
DICOM_Exception- DOCUMENT ME!
-
convertItemTypeToString
Converts item type to a readable string.- Parameters:
itemType- type defined above- Returns:
- readable item type string
-
getUID
Gets the UID for a simple PDU type.- Returns:
- the UID
-
length
public int length()Calculates the PDU item's body size (not including the header).- Returns:
- the UID's length
-
read
Reads the header and body of the PDU message from the connection.- Parameters:
connection- the connection where the data is read in- Throws:
DICOM_Exception- DOCUMENT ME!
-
setUID
Sets the UID for a simple PDU type.- Parameters:
UID- DOCUMENT ME!
-
write
Writes the header and body of the PDU messages.- Parameters:
connection- the connection where the data sent out- Throws:
DICOM_Exception- DOCUMENT ME!
-