org.dicom4j.network.protocoldataunit.codec
Class ProtocolDataUnitDecoder

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.codec.ProtocolDataUnitDecoder

public class ProtocolDataUnitDecoder
extends Object

Decode ProtocolDataUnit from stream

Since:
0.0.0
Author:
Laurent Lecomte

Constructor Summary
ProtocolDataUnitDecoder()
          Creates new Decoder
 
Method Summary
 ProtocolDataUnit decode(byte aType, int aLength, InputStream aStream)
          Read a stream to decode the ProtocolDataUnit contains in
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolDataUnitDecoder

public ProtocolDataUnitDecoder()
Creates new Decoder

Method Detail

decode

public ProtocolDataUnit decode(byte aType,
                               int aLength,
                               InputStream aStream)
                        throws ProtocolDataUnitDecoderException
Read a stream to decode the ProtocolDataUnit contains in

Parameters:
aType - the type of PDU
aLength - the length of the PDU
aStream - the stream to read from
Returns:
the readed PDU
Throws:
Exception - if errors occurs
ProtocolDataUnitDecoderException


Copyright © 2009 dicom4j. All Rights Reserved.