public class OpenTracMapSymbol extends OpenTracByteArray
id
Constructor and Description |
---|
OpenTracMapSymbol()
Create an empty OpenTracMapSymbol element (no symbol value yet).
|
OpenTracMapSymbol(int type,
byte[] body,
int offset,
int length)
Create an OpenTracMapSymbol element from the byte stream (presumably from an encoded OpenTRAC message).
|
OpenTracMapSymbol(java.lang.String symbolId)
Create an OpenTracMapSymbol element from the ASCII text representation of a map code, using either the
dotted-decimal format or the packed hexadecimal format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
valueString()
Get the string representation of the value of this element.
|
computeBody, equals, equalsElement, getByteArray, hashCode, length, toString
getId
public OpenTracMapSymbol()
public OpenTracMapSymbol(int type, byte[] body, int offset, int length)
type
- OpenTRAC element type code from OpenTracTypesbody
- byte array to extract symbol code fromoffset
- starting index in byte array for extractionlength
- length in bytes to extractOpenTracTypes
public OpenTracMapSymbol(java.lang.String symbolId)
symbolId
- symbol code Stringpublic java.lang.String valueString()
valueString
in class OpenTracByteArray