org.dicom4j.network.protocoldataunit.items
Class TransferSyntaxItem

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.items.support.AbstractProtocolDataUnitItem
          extended by org.dicom4j.network.protocoldataunit.items.TransferSyntaxItem
All Implemented Interfaces:
ProtocolDataUnitItem, ProtocolDataUnit

public class TransferSyntaxItem
extends AbstractProtocolDataUnitItem

Transfer Syntax 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
TransferSyntaxItem()
           
TransferSyntaxItem(BinaryInputStream aReader)
          Deprecated.  
TransferSyntaxItem(String aValue)
          Creates new Item
 
Method Summary
 String getName()
          Return the name of the Protocol Data Unit
 ProtocolDataUnitType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 String getValue()
           
 void setTransferSyntax(TransferSyntax transferSyntax)
           
 void setValue(String aValue)
           
 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.items.support.AbstractProtocolDataUnitItem
getLength, read
 
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

TransferSyntaxItem

public TransferSyntaxItem()

TransferSyntaxItem

@Deprecated
public TransferSyntaxItem(BinaryInputStream aReader)
                   throws DicomException,
                          IOException
Deprecated. 

Creates new Item from stream

Parameters:
aReader -
Throws:
DicomException
IOException

TransferSyntaxItem

public TransferSyntaxItem(String aValue)
Creates new Item

Parameters:
aValue - a valid TransferSyntax UID
Method Detail

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

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

getValue

public String getValue()
Overrides:
getValue in class AbstractProtocolDataUnitItem

setValue

public void setValue(String aValue)
Overrides:
setValue in class AbstractProtocolDataUnitItem

toString

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

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

Overrides:
write in class AbstractProtocolDataUnitItem
Throws:
DicomException
IOException

setTransferSyntax

public void setTransferSyntax(TransferSyntax transferSyntax)


Copyright © 2009 dicom4j. All Rights Reserved.