Basically a Tag is defined by :
Public Member Functions | ||||
Tag () | ||||
Create a default Tag that is null. | ||||
Tag (int i) | ||||
Create a Tag from an integer value. | ||||
Tag (int i, TagType t) | ||||
Create a Tag from an int and a TagType. | ||||
Tag (Tag t) | ||||
Create a Tag from a Tag (copy constructor). | ||||
Tag (IDLTag t) | ||||
Create a Tag from an IDLTag object. | ||||
String | toString () | |||
Return the Tag as a String. | ||||
void | toBin (DataOutputStream dos) throws IOException | |||
Write the binary representation of a Tag into a DataOutput stream
| ||||
IDLTag | toIDLTag () | |||
Return an IDLTag object. | ||||
String | getTag () | |||
Return this Tag value as a string. | ||||
TagType | getTagType () | |||
Returns the type of this Tag. | ||||
int | getTagValue () | |||
Returns the value of this Tag. | ||||
boolean | equals (Object o) | |||
boolean | eq (Tag t) | |||
boolean | isNull () | |||
Return true if and only if this Tag is null, i.e. | ||||
int | compareTo (Object o) | |||
A Comparator. | ||||
Static Public Member Functions | ||||
Tag | parseTag (String s) throws TagFormatException | |||
Create a Tag whose initial value is the specified string. | ||||
int[] | values (Tag[] items) | |||
Return an array of int containing the values of the array of Tag objects passed in argument. | ||||
void | toBin (Tag[] tag, DataOutputStream dos) throws IOException | |||
Write the binary representation of a 1D array of Tag into a DataOutputStream. | ||||
Tag | fromBin (DataInputStream dis) throws IOException, TagFormatException | |||
Read the binary representation of a Tag from a DataInputStream and use the read value to set a Tag. | ||||
Tag[] | from1DBin (DataInputStream dis) throws IOException, TagFormatException | |||
Read the binary representation of a 1D array of Tag from a DataInputStream and use the read value to set a 1D array of Tag. |
|
Create a default Tag that is null.
|
|
Create a Tag from an integer value.
|
|
Create a Tag from an int and a TagType.
|
|
Create a Tag from a Tag (copy constructor).
|
|
Create a Tag from an IDLTag object.
|
|
A Comparator. The comparison is performed by calling compareTo on the tag fields. |
|
|
|
|
|
Read the binary representation of a 1D array of Tag from a DataInputStream and use the read value to set a 1D array of Tag.
|
|
Read the binary representation of a Tag from a DataInputStream and use the read value to set a Tag.
|
|
Return this Tag value as a string.
|
|
Returns the type of this Tag. A null returned value indicates that the Tag is null (i.e. this.isNull() == true)/
|
|
Returns the value of this Tag. The returned value has no meaning if the Tag is null.
|
|
Return true if and only if this Tag is null, i.e. if its TagType field is null.
|
|
Create a Tag whose initial value is the specified string.
|
|
Write the binary representation of a 1D array of Tag into a DataOutputStream.
|
|
Return an IDLTag object.
|
|
Return the Tag as a String. The resulting string consists in the string representation of the type followed by an underscore followed by the String representation of the value. Examples : "Antenna_12", "SpectralWindow_0".
|
|
Return an array of int containing the values of the array of Tag objects passed in argument. It must be noted that the information related to the type of each Tag in the items array is lost ! This method is useful only for anyone interested in the (int) values of Tag objects stored in array. |