org.dicom4j.network.protocoldataunit.items
Class PresentationContextItemRQ

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

public class PresentationContextItemRQ
extends PresentationContextItem

Presentation Context Item in Request (SEE DICOM PS 3.8)

Since:
0.0.1
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Constructor Summary
PresentationContextItemRQ(BinaryInputStream aStream)
          Creates new PRESENTATION CONTEXT ITEM
PresentationContextItemRQ(byte aID)
          Creates a new PRESENTATION CONTEXT ITEM
 
Method Summary
 void addTransferSyntax(String aTransferSyntax)
          Add one Transfer Syntax
 void addTransferSyntax(TransferSyntax aTransferSyntax)
          Add one Transfer Syntax
 void addTransferSyntaxes(String[] aTransfertSyntaxes)
          Add many Transfer Syntaxes
 void addTransferSyntaxes(TransferSyntax[] aTransfertSyntaxes)
          Add many Transferts Syntaxes
 String getAbstractSyntax()
          Return the AbstractSyntax
 int getLength()
          Return the length of the Protocol Data Unit
 String getName()
          Return the name of the Protocol Data Unit
 String getTransferSyntax(int aIndex)
           
 int getTransferSyntaxesCount()
           
 ProtocolDataUnitItemType 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
 void setAbstractSyntax(String aAbstractSyntax)
          Set the AbstractSyntax
 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.PresentationContextItem
getID, setID
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
checkStream, getSopClassRegistry, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PresentationContextItemRQ

public PresentationContextItemRQ(BinaryInputStream aStream)
                          throws DicomException,
                                 IOException
Creates new PRESENTATION CONTEXT ITEM

Parameters:
aStream -
Throws:
DicomException
IOException

PresentationContextItemRQ

public PresentationContextItemRQ(byte aID)
Creates a new PRESENTATION CONTEXT ITEM

Parameters:
aID - the ID
Method Detail

addTransferSyntax

public void addTransferSyntax(String aTransferSyntax)
Add one Transfer Syntax

Parameters:
aTransferSyntax -

addTransferSyntax

public void addTransferSyntax(TransferSyntax aTransferSyntax)
Add one Transfer Syntax

Parameters:
aTransferSyntax - the TransferSyntax

addTransferSyntaxes

public void addTransferSyntaxes(String[] aTransfertSyntaxes)
Add many Transfer Syntaxes

Parameters:
aTransfertSyntaxes -

addTransferSyntaxes

public void addTransferSyntaxes(TransferSyntax[] aTransfertSyntaxes)
Add many Transferts Syntaxes

Parameters:
aTransfertSyntaxes -

getAbstractSyntax

public String getAbstractSyntax()
Return the AbstractSyntax

Returns:
the AbstractSyntax

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

getName

public String getName()
Description copied from class: ProtocolDataUnit
Return the name of the Protocol Data Unit

Specified by:
getName in interface ProtocolDataUnit
Overrides:
getName in class ProtocolDataUnit
Returns:
the name

getTransferSyntax

public String getTransferSyntax(int aIndex)

getTransferSyntaxesCount

public int getTransferSyntaxesCount()

getType

public ProtocolDataUnitItemType 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

setAbstractSyntax

public void setAbstractSyntax(String aAbstractSyntax)
Set the AbstractSyntax

Parameters:
aAbstractSyntax -

toString

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

Specified by:
toString in interface ProtocolDataUnit
Overrides:
toString in class PresentationContextItem
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.