public interface ICommandSet
| Modifier and Type | Method and Description |
|---|---|
int |
addCommandElement(ICommandElement objICommandElement)
The implementation of this method adds the CommandElement to the command set.
|
byte[] |
getBytes(int iNumberOfBytes)
Gets the bytes of Comamnd Set.
|
int |
getCommandSetLength()
This function returns the length of Command Set.
|
ICommandElement |
getDataForTag(int iGroupNumber,
int iElementNumber)
The implementation of this method retrieves the CommandElement for the
specified tag.
|
IDictionaryReader |
getDictionaryReader()
The implementation of this method retrieves the DictionaryReader.
|
ITransferSyntax |
getTransferSyntax()
The implementation of this method retrieves the TransferSyntax set in the
DataSet.
|
java.lang.Object |
getValue(int iGroupNumber,
int iElementNumber)
This method returns value of DicomValue.
|
boolean |
isAvailable()
Checks if command set bytes is available.
|
boolean |
isEmpty()
The implementation of this method checks that Command set is empty or
not.
|
boolean |
isPresent(int iGroupNumber,
int iElementNumber)
The implementation of this method checks that element is present in
Command set or not.
|
int |
parse(IDicomStream objIDicomStream)
The implementation of this method parses the CommandSet from the given
Stream.
|
int |
serialize(IDicomStream objIDicomStream)
The implementation of this method serialize the CommandSet from the given
Stream.
|
boolean |
validate()
The implementation of this method validates the CommandSet according to
the DICOM Rules.
|
int parse(IDicomStream objIDicomStream) throws ParseException, java.io.IOException
objIDicomStream - Stream on which the DICOM data is available.ParseException - If parsing fails.java.io.IOException - If Input/Output operation fails.int serialize(IDicomStream objIDicomStream) throws SerializeException, java.io.IOException
objIDicomStream - Stream on which the DICOM data is available.java.io.IOException - If Input/Output operation fails.SerializeException - the serialize exceptionICommandElement getDataForTag(int iGroupNumber, int iElementNumber)
iGroupNumber - integer value of group number.iElementNumber - integer value of element number.IDictionaryReader getDictionaryReader()
int addCommandElement(ICommandElement objICommandElement)
objICommandElement - the command element to be added to command set.ITransferSyntax getTransferSyntax()
boolean isPresent(int iGroupNumber,
int iElementNumber)
iGroupNumber - integer value of group number.iElementNumber - integer value of element number.boolean isEmpty()
boolean validate()
throws InvalidCommandSetException
InvalidDataSetException - if validation of DataSet fails.InvalidCommandSetException - the invalid command set exceptionint getCommandSetLength()
boolean isAvailable()
byte[] getBytes(int iNumberOfBytes)
throws java.io.IOException
iNumberOfBytes - the number of bytes required.java.io.IOException - Signals that an I/O exception has occurred.java.lang.Object getValue(int iGroupNumber,
int iElementNumber)
iGroupNumber - Group Number of the Command ElementiElementNumber - Element Number of the Command Element