|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
public abstract class ProtocolDataUnit
Abstract implement of ProtocolDataUnit
| Nested Class Summary | |
|---|---|
class |
ProtocolDataUnit.Types
Deprecated. see ProtocolDataUnitType |
| Method Summary | |
|---|---|
static void |
checkStream(BinaryInputStream stream)
|
abstract int |
getLength()
Return the length of the Protocol Data Unit |
String |
getName()
Return the name of the Protocol Data Unit |
SOPClassRegistry |
getSopClassRegistry()
return the SOPClassRegistry |
abstract ProtocolDataUnitType |
getType()
return the type of the Protocol Data Unit
TODO change to ProtocolType |
abstract void |
read(BinaryInputStream aStream,
int aLength)
Read the Protocol Data Unit from a stream |
void |
setSopClassRegistry(SOPClassRegistry sopClassRegistry)
set the SOPClassRegistry |
byte[] |
toBytes()
Return the Protocol Data Unit as bytes |
String |
toString()
the ProtocolDataUnit as a string |
static String |
typetoString(byte aType)
return a type of PDU as String |
abstract void |
write(BinaryOutputStream aStream)
Write the Protocol Data Unit to a stream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static void checkStream(BinaryInputStream stream)
throws DicomException
DicomExceptionpublic static String typetoString(byte aType)
aType - type of PDU
public abstract int getLength()
getLength in interface ProtocolDataUnitpublic String getName()
getName in interface ProtocolDataUnitpublic String toString()
toString in interface ProtocolDataUnittoString in class Objectpublic abstract ProtocolDataUnitType getType()
return the type of the Protocol Data Unit
getType in interface ProtocolDataUnit
public abstract void read(BinaryInputStream aStream,
int aLength)
throws DicomException,
IOException
aStream - aLength -
DicomException
IOException
public byte[] toBytes()
throws DicomException,
IOException
DicomException
IOException
public abstract void write(BinaryOutputStream aStream)
throws DicomException,
IOException
aStream -
DicomException
IOExceptionpublic SOPClassRegistry getSopClassRegistry()
ProtocolDataUnitSOPClassRegistry
getSopClassRegistry in interface ProtocolDataUnitpublic void setSopClassRegistry(SOPClassRegistry sopClassRegistry)
ProtocolDataUnitSOPClassRegistry
setSopClassRegistry in interface ProtocolDataUnitsopClassRegistry - the SOPClassRegistry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||