org.dicom4j.network.protocoldataunit.items
Class PresentationDataValueItem

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.items.PresentationDataValueItem

public class PresentationDataValueItem
extends Object

Presentation Data Value Item

Since:
0.0.0
Author:
Laurent Lecomte

Constructor Summary
PresentationDataValueItem()
           
PresentationDataValueItem(BinaryInputStream aReader)
           
PresentationDataValueItem(byte aPresentationContextID, boolean isCommand, boolean isLastFragment, byte[] value)
           
 
Method Summary
 long getLength()
          get the total length of this PresentationDataValue
 byte getPresentationContextID()
          Return the Presentation Context ID
 byte[] getValue()
           
 boolean isCommand()
          Return true if it's contain a command
 boolean isLastFragment()
          Return true if it's a last fragment
 void read(BinaryInputStream aStream, int aLength)
           
 String toString()
           
 void write(BinaryOutputStream aStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PresentationDataValueItem

public PresentationDataValueItem()

PresentationDataValueItem

public PresentationDataValueItem(BinaryInputStream aReader)
                          throws DicomException,
                                 IOException
Throws:
DicomException
IOException

PresentationDataValueItem

public PresentationDataValueItem(byte aPresentationContextID,
                                 boolean isCommand,
                                 boolean isLastFragment,
                                 byte[] value)
Parameters:
aPresentationContextID -
value -
isCommand -
isLastFragment -
Method Detail

getLength

public long getLength()
get the total length of this PresentationDataValue

Returns:
the length

getPresentationContextID

public byte getPresentationContextID()
Return the Presentation Context ID

Returns:
The Presentation Context ID

getValue

public byte[] getValue()

isCommand

public boolean isCommand()
Return true if it's contain a command

Returns:
True if contain Command

isLastFragment

public boolean isLastFragment()
Return true if it's a last fragment

Returns:
True if last fragment

read

public void read(BinaryInputStream aStream,
                 int aLength)
          throws DicomException,
                 IOException
Throws:
DicomException
IOException

toString

public String toString()
Overrides:
toString in class Object

write

public void write(BinaryOutputStream aStream)
           throws DicomException,
                  IOException
Throws:
DicomException
IOException


Copyright © 2009 dicom4j. All Rights Reserved.