org.dicom4j.network.protocoldataunit.codec
Class ProtocolDataUnitDecoder
java.lang.Object
org.dicom4j.network.protocoldataunit.codec.ProtocolDataUnitDecoder
public class ProtocolDataUnitDecoder
- extends Object
Decode
ProtocolDataUnit
from stream
- Since:
- 0.0.0
- Author:
- Laurent Lecomte
ProtocolDataUnitDecoder
public ProtocolDataUnitDecoder()
- Creates new Decoder
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 PDUaLength - the length of the PDUaStream - the stream to read from
- Returns:
- the readed PDU
- Throws:
Exception - if errors occurs
ProtocolDataUnitDecoderException
Copyright © 2009 dicom4j. All Rights Reserved.