org.dicom4j.network.protocoldataunit.support
Class AssociateRQACPDU

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.support.AssociateRQACPDU
All Implemented Interfaces:
ProtocolDataUnit
Direct Known Subclasses:
AssociateACPDU, AssociateRQPDU

public abstract class AssociateRQACPDU
extends ProtocolDataUnit

Base class for AssociateRQPDU and AssociateRJPDU

Since:
0.0.0
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Method Summary
 ApplicationContextItem getApplicationContextItem()
           
 String getCalledAETitle()
           
 String getCallingAETitle()
           
 int getLength()
          Return the length of the Protocol Data Unit
 Iterator<PresentationContextItem> getPresentationIterator()
           
 int getProtocolVersion()
           
 UserInformationItem getUserInformationItem()
           
 void read(BinaryInputStream stream, int length)
          Read the Protocol Data Unit from a stream
 void setApplicationContext(String aApplicationContext)
           
 void setCalledAET(String aCalledAET)
           
 void setCallingAET(String aCallingAET)
           
 void setUserInformations(long aMaximumLength, String ImplementationUID, String ImplementationVersion)
           
 String toString()
          the ProtocolDataUnit as a string
 void write(BinaryOutputStream aStream)
          Write the Protocol Data Unit to a stream
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
checkStream, getName, getSopClassRegistry, getType, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getApplicationContextItem

public ApplicationContextItem getApplicationContextItem()
Parameters:
req -

getCalledAETitle

public String getCalledAETitle()

getCallingAETitle

public String getCallingAETitle()

getLength

public int getLength()
Description copied from class: ProtocolDataUnit
Return the length of the Protocol Data Unit

Specified by:
getLength in interface ProtocolDataUnit
Specified by:
getLength in class ProtocolDataUnit
Returns:
the length

getPresentationIterator

public Iterator<PresentationContextItem> getPresentationIterator()

getProtocolVersion

public int getProtocolVersion()

getUserInformationItem

public UserInformationItem getUserInformationItem()

read

public void read(BinaryInputStream stream,
                 int length)
          throws DicomException,
                 IOException
Description copied from class: ProtocolDataUnit
Read the Protocol Data Unit from a stream

Specified by:
read in class ProtocolDataUnit
Throws:
DicomException
IOException

setApplicationContext

public void setApplicationContext(String aApplicationContext)

setCalledAET

public void setCalledAET(String aCalledAET)

setCallingAET

public void setCallingAET(String aCallingAET)

setUserInformations

public void setUserInformations(long aMaximumLength,
                                String ImplementationUID,
                                String ImplementationVersion)

toString

public String toString()
Description copied from class: ProtocolDataUnit
the ProtocolDataUnit as a string

Specified by:
toString in interface ProtocolDataUnit
Overrides:
toString in class ProtocolDataUnit
Returns:
ProtocolDataUnit as string

write

public void write(BinaryOutputStream aStream)
           throws DicomException,
                  IOException
Description copied from class: ProtocolDataUnit
Write the Protocol Data Unit to a stream

Specified by:
write in class ProtocolDataUnit
Throws:
DicomException
IOException


Copyright © 2009 dicom4j. All Rights Reserved.