public class PDV
extends java.lang.Object
| Constructor and Description |
|---|
PDV() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getFragment()
This function returns the fragment provided by the user.
|
int |
getFragmentType()
This function returns the type of fragment i.e.
|
boolean |
isLast()
This function returns whether fragment is last fragment.
|
void |
parse(IDicomStream objIDicomStream,
int length)
The implementation of this method parses the PDV Element from the given
Stream.
|
void |
serialize(IDicomStream objIDicomStream,
int length)
The implementation of this method serializes the PDV Element from the
given Stream.
|
void |
setFragment(byte[] fragment)
This function sets the fragment segment provided by the user.
|
void |
setFragmentType(int iFragmentType)
This function sets the type of fragment i.e.
|
void |
setIsLast()
This function returns whether fragment is last fragment.
|
public void setFragment(byte[] fragment)
fragment - byte array of fragment.public byte[] getFragment()
public int getFragmentType()
public boolean isLast()
public void setFragmentType(int iFragmentType)
iFragmentType - integer value of type of fragmentpublic void setIsLast()
public void parse(IDicomStream objIDicomStream, int length) throws java.io.IOException, ParseException
objIDicomStream - Stream on which the PDV is available.length - integer value of PDV length to be parsed.java.io.IOException - Signals that an IO Exception has occurred.ParseException - Signals that an Parse Exception has occurred.public void serialize(IDicomStream objIDicomStream, int length) throws java.io.IOException
objIDicomStream - Stream on which the PDV is available.length - integer value of PDV length to be parsed.java.io.IOException - Signals that an IO Exception has occurred.