public class TagData
extends java.lang.Object
Constructor and Description |
---|
TagData() |
Modifier and Type | Method and Description |
---|---|
static TagData |
fromByteArray(byte[] data)
Creates a TagData object from an array of bytes
|
static TagData |
fromByteList(java.util.List<java.lang.Byte> data)
Creates a TagData object from a List of bytes
|
static TagData |
fromDoubleWord(long data)
Creates a TagData object from a long integer
|
static TagData |
fromHexString(java.lang.String hex)
Creates a TagData object from a hexadecimal string
|
static TagData |
fromWord(int data)
Creates a TagData object from an array of integers (words)
|
static TagData |
fromWordArray(int[] data)
Creates a TagData object from an array of integers (words)
|
static TagData |
fromWordList(java.util.List<java.lang.Integer> data)
Creates a TagData object from a List of Integers
|
int |
getCountBytes()
Returns the size of the tag data in bytes
|
long |
toDoubleWord()
Returns the value of a TagData object as a long integer
|
java.lang.String |
toHexString()
Returns the value of a TagData object as a hexadecimal string
|
java.lang.String |
toHexWordString()
Returns the value of a TagData object as a hexadecimal string with each
16-bit word separated by a space
|
java.lang.String |
toString()
Returns the value of a TagData object as a hexadecimal string
|
java.util.List<java.lang.Integer> |
toWordList()
Returns the value of a TagData object as a List of Integers
|
public static TagData fromWordList(java.util.List<java.lang.Integer> data) throws OctaneSdkException
data
- The data to store in the TagData objectOctaneSdkException
- if the conversion failspublic static TagData fromByteArray(byte[] data) throws OctaneSdkException
data
- The data to store in the TagData objectOctaneSdkException
- if the conversion failspublic static TagData fromWordArray(int[] data) throws OctaneSdkException
data
- The data to store in the TagData objectOctaneSdkException
- if the conversion failspublic static TagData fromWord(int data) throws OctaneSdkException
data
- The data to store in the TagData objectOctaneSdkException
- if the conversion failspublic static TagData fromByteList(java.util.List<java.lang.Byte> data) throws OctaneSdkException
data
- a list of bytes containing data
The data to store in the TagData objectOctaneSdkException
- if the conversion fails.public static TagData fromHexString(java.lang.String hex) throws OctaneSdkException
hex
- A hexadecimal string representing the data to store in the
TagData objectOctaneSdkException
- if the conversion failspublic static TagData fromDoubleWord(long data) throws OctaneSdkException
data
- The data to store in the TagData objectOctaneSdkException
- if the conversion failspublic int getCountBytes()
public java.util.List<java.lang.Integer> toWordList()
public java.lang.String toHexWordString()
public java.lang.String toHexString()
public java.lang.String toString()
toString
in class java.lang.Object
public long toDoubleWord() throws OctaneSdkException
OctaneSdkException
- if the data cannot fit into a long