public class BytesToEnd extends LLRPType
Modifier and Type | Field and Description |
---|---|
protected java.util.List<SignedByte> |
bytes |
Constructor and Description |
---|
BytesToEnd()
Creates a new BytesToEnd object.
|
BytesToEnd(org.jdom.Element element)
Creates a new BytesToEnd object from jdom element - used for xml decoding.
|
BytesToEnd(LLRPBitList bits)
basically an endless array of bytes.
|
BytesToEnd(LLRPBitList bitList,
int bitIndex,
int length) |
BytesToEnd(java.lang.String hexString) |
Modifier and Type | Method and Description |
---|---|
void |
add(SignedByte aByte)
add a byte to the end of all bytes.
|
void |
decodeBinary(LLRPBitList list)
overwritten decoding function.
|
void |
decodeXML(org.jdom.Element element)
decode from XML
|
LLRPBitList |
encodeBinary()
overwritten encoding function.
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encode to XML
|
SignedByte |
get(java.lang.Integer i)
get a byte at a specified position.
|
int |
getByteLength()
length in number of bytes (equal to number of bytes in list).
|
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML
|
static int |
length()
length of BaseType - not of the array - for array length call size().
|
int |
size()
number of elements.
|
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
toXMLString
protected java.util.List<SignedByte> bytes
public BytesToEnd()
public BytesToEnd(java.lang.String hexString)
hexString
- String in Hexadecimal formatpublic BytesToEnd(LLRPBitList bits)
bits
- Integererpredet as block of bytespublic BytesToEnd(LLRPBitList bitList, int bitIndex, int length)
public BytesToEnd(org.jdom.Element element)
element
- to be decodedpublic void add(SignedByte aByte)
aByte
- to be addedpublic void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public SignedByte get(java.lang.Integer i)
i
- position to be getpublic int getByteLength()
public static int length()
public int size()
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
public void decodeXML(org.jdom.Element element)
public java.lang.String toString()
LLRPType
Copyright © 2007 ETH Zurich.