public class CommandSet extends java.lang.Object implements ICommandSet
| Constructor and Description |
|---|
CommandSet()
Instantiates Command set with default transfer syntax
and dictionary reader.
|
CommandSet(IDictionaryReader objIDictionaryReader_)
Instantiates Command Set with Dictionary Reader specified by the user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addCommandElement(ICommandElement objICommandElement)
Adds the Command Element to the Command Set.
|
byte[] |
getBytes(int iNumberOfBytes)
Retrieves the number of bytes from CommandSet.
|
int |
getCommandSetLength()
Retrieves the length of Command Set.
|
ICommandElement |
getDataForTag(int iGroupNumber,
int iElementNumber)
Retrieves the Command Element for the specified tag.
|
IDictionaryReader |
getDictionaryReader()
Retrieves the DictionaryReader set in the Command Set.
|
ITransferSyntax |
getTransferSyntax()
The implementation of this method retrieves the TransferSyntax set in the Command Set.
|
java.lang.Object |
getValue(int iGroupNumber,
int iElementNumber)
Retrieves the value of DicomValue.
|
boolean |
isAvailable()
Shows the availability of CommandElement in CommandSet.
|
boolean |
isEmpty()
Checks whether 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.
|
ICollectionIterator<ICommandElement> |
iterator()
Provides iterator over the collection of Command Elements.
|
int |
parse(IDicomStream objIDicomStream)
The implementation of this method parses the Command Set from the given Stream.
|
int |
serialize(IDicomStream objIDicomStream)
Serializes the CommandSet to the given Stream.
|
boolean |
validate()
validates the CommandSet for proper ordering of CommandElements.
|
public CommandSet()
public CommandSet(IDictionaryReader objIDictionaryReader_)
objIDictionaryReader_ - Dictionary reader used by the data set.public IDictionaryReader getDictionaryReader()
getDictionaryReader in interface ICommandSetpublic int parse(IDicomStream objIDicomStream) throws InvalidDataSetException, java.io.IOException
parse in interface ICommandSetobjIDicomStream - Stream on which the DICOM data is available.java.io.IOException - If Input/Output operation fails.InvalidDataSetException - If DataSet fails to satisfy validation criteria.public int getCommandSetLength()
getCommandSetLength in interface ICommandSetpublic int serialize(IDicomStream objIDicomStream) throws java.io.IOException
serialize in interface ICommandSetobjIDicomStream - instance of DicomStreamjava.io.IOException - If Input/Output operation fails.public ICommandElement getDataForTag(int iGroupNumber, int iElementNumber)
getDataForTag in interface ICommandSetiGroupNumber - Group Number of the Command ElementiElementNumber - Element Number of the Command Elementpublic int addCommandElement(ICommandElement objICommandElement)
addCommandElement in interface ICommandSetobjICommandElement - instance of Command Elementpublic ICollectionIterator<ICommandElement> iterator()
public boolean isPresent(int iGroupNumber,
int iElementNumber)
isPresent in interface ICommandSetiGroupNumber - value of group number.iElementNumber - value of element number.public boolean isEmpty()
isEmpty in interface ICommandSetpublic ITransferSyntax getTransferSyntax()
getTransferSyntax in interface ICommandSetpublic boolean validate()
throws InvalidCommandSetException
validate in interface ICommandSetInvalidCommandSetException - - If CommandSet fails to satisfy validation criteria.public byte[] getBytes(int iNumberOfBytes)
throws java.io.IOException
getBytes in interface ICommandSetiNumberOfBytes - number of bytes to retrieve.java.io.IOException - If Input/Output operation fails.public java.lang.Object getValue(int iGroupNumber,
int iElementNumber)
getValue in interface ICommandSetiGroupNumber - Group Number of the DataElementiElementNumber - Element Number of the DataElementpublic boolean isAvailable()
isAvailable in interface ICommandSet