public class BitArray_HEX extends BitArray
Modifier and Type | Field and Description |
---|---|
protected int |
validBits |
Constructor and Description |
---|
BitArray_HEX()
empty bit array.
|
BitArray_HEX(Bit[] bits)
Array of Bits encoded in HEX Format.
|
BitArray_HEX(org.jdom.Element element) |
BitArray_HEX(int length)
create a new BitArray_HEX.
|
BitArray_HEX(LLRPBitList list)
create a new BitArray_HEX.
|
BitArray_HEX(LLRPBitList bitList,
int bitIndex,
int length) |
BitArray_HEX(java.lang.String hexString) |
Modifier and Type | Method and Description |
---|---|
void |
decodeBinary(LLRPBitList list)
Create BitArray from BitList.
|
void |
decodeXML(org.jdom.Element element)
decode JDOM Element
|
LLRPBitList |
encodeBinary()
encodes length before encoding containing values.
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encode to XML
|
static int |
length()
length in number of bits used to represent this type.
|
java.lang.String |
toString()
String representation
|
add, clear, get, inRange, set, size, toString
toXMLString
public BitArray_HEX(Bit[] bits)
bits
- to be decodedpublic BitArray_HEX(LLRPBitList list)
list
- to be decodedpublic BitArray_HEX(LLRPBitList bitList, int bitIndex, int length)
public BitArray_HEX(int length)
length
- of arraypublic BitArray_HEX()
public BitArray_HEX(org.jdom.Element element)
element
- to be decodedpublic BitArray_HEX(java.lang.String hexString)
hexString
- String in Hexadecimal formatpublic static int length()
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
public void decodeXML(org.jdom.Element element)
public LLRPBitList encodeBinary()
BitArray
encodeBinary
in class BitArray
public void decodeBinary(LLRPBitList list)
BitArray
decodeBinary
in class BitArray
list
- to be decodedCopyright © 2007 ETH Zurich.