org.dicom4j.network.protocoldataunit
Class AAbortPDU

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

public class AAbortPDU
extends ProtocolDataUnit

A-ABORT PDU

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
AAbortPDU()
          Creates a A-ABORT
AAbortPDU(BinaryInputStream aStream, int aLength)
          Deprecated.  
AAbortPDU(byte aSource, byte aReason)
          Creates a A-ABORT
 
Method Summary
 int getLength()
          Return the length of the Protocol Data Unit
 String getName()
          Return the name of the Protocol Data Unit
 byte getReason()
          Return the reason of the A-Abort
 byte getSource()
          Return the source of the A-Abort
 ProtocolDataUnitType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 void read(BinaryInputStream stream, int length)
          Read the Protocol Data Unit from a stream
 String toString()
          Return the PDU as a string
 void write(BinaryOutputStream aStream)
          Write the Protocol Data Unit to a stream
 
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

AAbortPDU

public AAbortPDU()
Creates a A-ABORT


AAbortPDU

public AAbortPDU(BinaryInputStream aStream,
                 int aLength)
          throws DicomException,
                 IOException
Deprecated. 

Creates a A-ABORT PDU

Parameters:
aStream - the stream
aLength - length to read
Throws:
DicomException
IOException

AAbortPDU

public AAbortPDU(byte aSource,
                 byte aReason)
Creates a A-ABORT

Parameters:
aSource - the source
aReason - the reason
Method Detail

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

getReason

public byte getReason()
Return the reason of the A-Abort

Returns:
Reason of A-Abort

getSource

public byte getSource()
Return the source of the A-Abort

Returns:
Source of A-Abort

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

read

public void read(BinaryInputStream stream,
                 int length)
          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

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

toString

public String toString()
Return the PDU as a string

Specified by:
toString in interface ProtocolDataUnit
Overrides:
toString in class ProtocolDataUnit
Returns:
PDU as a string


Copyright © 2009 dicom4j. All Rights Reserved.