public class Tag extends java.lang.Object implements ITag
| Constructor and Description |
|---|
Tag(int iGroupNumber,
int iElementNumber)
Constructs Tag for specified group and element number
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create similar object of this class.
|
int |
compareTo(java.lang.Object objTagObject)
This method provides custom comparison for Tag class
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the contentes of the Tag that is Group Number and Element Number in readable form to the specified stream.
|
boolean |
equals(java.lang.Object obj)
This method checks the equality of two objects.
|
int |
getElementNumber()
This method retrieves the element number.
|
int |
getGroupNumber()
This method retrieves the group number.
|
int |
hashCode()
This method is overridden because Tag class is used as a key
in the Maps in model.
|
int |
read(IDicomStream objIDicomStream)
This method reads the data from stream.
|
java.lang.String |
toString()
This function returns the String value of Tag.
|
int |
write(IDicomStream objIDicomStream)
This method writes the data to the stream.
|
public Tag(int iGroupNumber, int iElementNumber)
iGroupNumber - integer value of group.iElementNumber - integer value of element.public int read(IDicomStream objIDicomStream)
public int getElementNumber()
getElementNumber in interface ITagpublic int getGroupNumber()
getGroupNumber in interface ITagpublic int write(IDicomStream objIDicomStream) throws java.io.IOException
public int compareTo(java.lang.Object objTagObject)
compareTo in interface java.lang.ComparableobjTagObject - instance of Tag to comparepublic boolean equals(java.lang.Object obj)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
public void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
dumpDICOMInfo in interface ITagobjIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.