org.dicom4j.network.protocoldataunit.items
Class UserInformationItem

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.items.UserInformationItem
All Implemented Interfaces:
ProtocolDataUnit

public class UserInformationItem
extends ProtocolDataUnit

User Information Item (see DICOM PS 3.8)

Since:
0.0.0
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Constructor Summary
UserInformationItem()
          Creates a new User Information Item
 
Method Summary
 void addScpScuRoleSelection(String aSOPClassUID, boolean aIsSCU, boolean aIsSCP)
           
 AsynchronousOperationsWindow getAsynchronousOperationsWindow()
           
 String getImplementationClassUID()
           
 String getImplementationVersionName()
           
 int getLength()
          Return the length of the PDU
 long getMaximumLength()
          Return the Maximum length (those stored in the MaximumLengthSubItem)
 int getMaximumNumberOperationsInvoked()
           
 int getMaximumNumberOperationsPerformed()
           
 ProtocolDataUnitType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 void read(BinaryInputStream aStream, int aLength)
          Read the Protocol Data Unit from a stream
 String setImplementationClassUID(String implementationClassUID)
           
 String setImplementationVersionName(String aImplementationVersionName)
           
 void setMaximumLength(long aMaximumLength)
           
 void setMaximumNumberOperationsInvoked(int aMaximumNumberOperationsInvoked)
           
 void setMaximumNumberOperationsPerformed(int aMaximumNumberOperationsPerformed)
           
 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, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserInformationItem

public UserInformationItem()
Creates a new User Information Item

Method Detail

addScpScuRoleSelection

public void addScpScuRoleSelection(String aSOPClassUID,
                                   boolean aIsSCU,
                                   boolean aIsSCP)

getAsynchronousOperationsWindow

public AsynchronousOperationsWindow getAsynchronousOperationsWindow()

setImplementationClassUID

public String setImplementationClassUID(String implementationClassUID)

setImplementationVersionName

public String setImplementationVersionName(String aImplementationVersionName)

getImplementationClassUID

public String getImplementationClassUID()

getImplementationVersionName

public String getImplementationVersionName()

getLength

public int getLength()
Return the length of the PDU

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

getMaximumLength

public long getMaximumLength()
Return the Maximum length (those stored in the MaximumLengthSubItem)

Returns:
the maximum PDU length

getMaximumNumberOperationsInvoked

public int getMaximumNumberOperationsInvoked()

getMaximumNumberOperationsPerformed

public int getMaximumNumberOperationsPerformed()

getType

public ProtocolDataUnitType getType()
Description copied from class: ProtocolDataUnit

return the type of the Protocol Data Unit

TODO change to ProtocolType

Specified by:
getType in interface ProtocolDataUnit
Specified by:
getType in class ProtocolDataUnit
Returns:
the type

read

public void read(BinaryInputStream aStream,
                 int aLength)
          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

setMaximumLength

public void setMaximumLength(long aMaximumLength)

setMaximumNumberOperationsInvoked

public void setMaximumNumberOperationsInvoked(int aMaximumNumberOperationsInvoked)

setMaximumNumberOperationsPerformed

public void setMaximumNumberOperationsPerformed(int aMaximumNumberOperationsPerformed)

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.