org.dicom4j.network.protocoldataunit
Class ProtocolDataUnitFactory

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.ProtocolDataUnitFactory

public class ProtocolDataUnitFactory
extends Object

Factory to create ProtocolDataUnit

Since:
0.0.2
Author:
Laurent Lecomte

Constructor Summary
ProtocolDataUnitFactory()
           
 
Method Summary
 ProtocolDataUnit newProtocolDataUnit(byte type)
          creates a new ProtocolDataUnit depending of the supplied type (as byte)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolDataUnitFactory

public ProtocolDataUnitFactory()
Method Detail

newProtocolDataUnit

public ProtocolDataUnit newProtocolDataUnit(byte type)
                                     throws UnrecognizedPDUException
creates a new ProtocolDataUnit depending of the supplied type (as byte)

Parameters:
type - the type of PDU
Returns:
the new PDU
Throws:
UnrecognizedPDUException - if type doesn't match to a valid PDU


Copyright © 2009 dicom4j. All Rights Reserved.