|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.llrp.ltk.types.LLRPType org.llrp.ltk.types.BytesToEnd
public class BytesToEnd
List of Bytes of unbound length. Length is not encoded!
Field Summary | |
---|---|
protected java.util.List<SignedByte> |
bytes
|
Constructor Summary | |
---|---|
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(java.lang.String hexString)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.llrp.ltk.types.LLRPType |
---|
toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<SignedByte> bytes
Constructor Detail |
---|
public BytesToEnd()
public BytesToEnd(java.lang.String hexString)
hexString
- String in Hexadecimal formatpublic BytesToEnd(LLRPBitList bits)
bits
- Integererpredet as block of bytespublic BytesToEnd(org.jdom.Element element)
element
- to be decodedMethod Detail |
---|
public 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 get
public int getByteLength()
public static int length()
public int size()
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
encodeXML
in class LLRPType
name
- of elementns
- Namespacepublic void decodeXML(org.jdom.Element element)
decodeXML
in class LLRPType
element
- to decodepublic java.lang.String toString()
LLRPType
toString
in class LLRPType
public java.lang.String toString(int radix)
toString
in class LLRPType
public boolean inRange(java.lang.String valueString)
inRange
in class LLRPType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |