org.llrp.ltk.types
Class BytesToEnd

java.lang.Object
  extended by org.llrp.ltk.types.LLRPType
      extended by org.llrp.ltk.types.BytesToEnd
Direct Known Subclasses:
BytesToEnd_HEX

public class BytesToEnd
extends LLRPType

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

bytes

protected java.util.List<SignedByte> bytes
Constructor Detail

BytesToEnd

public BytesToEnd()
Creates a new BytesToEnd object.


BytesToEnd

public BytesToEnd(java.lang.String hexString)
Parameters:
hexString - String in Hexadecimal format

BytesToEnd

public BytesToEnd(LLRPBitList bits)
basically an endless array of bytes.

Parameters:
bits - Integererpredet as block of bytes

BytesToEnd

public BytesToEnd(org.jdom.Element element)
Creates a new BytesToEnd object from jdom element - used for xml decoding.

Parameters:
element - to be decoded
Method Detail

add

public void add(SignedByte aByte)
add a byte to the end of all bytes.

Parameters:
aByte - to be added

decodeBinary

public void decodeBinary(LLRPBitList list)
overwritten decoding function.

Specified by:
decodeBinary in class LLRPType
Parameters:
list - to be decoded

encodeBinary

public LLRPBitList encodeBinary()
overwritten encoding function.

Specified by:
encodeBinary in class LLRPType
Returns:
LLRPBitList

get

public SignedByte get(java.lang.Integer i)
get a byte at a specified position.

Parameters:
i - position to be get
Returns:
SignedByte

getByteLength

public int getByteLength()
length in number of bytes (equal to number of bytes in list).

Returns:
Integer

length

public static int length()
length of BaseType - not of the array - for array length call size().

Returns:
length of BaseType

size

public int size()
number of elements.

Returns:
number of elements

encodeXML

public org.jdom.Content encodeXML(java.lang.String name,
                                  org.jdom.Namespace ns)
encode to XML

Specified by:
encodeXML in class LLRPType
Parameters:
name - of element
ns - Namespace

decodeXML

public void decodeXML(org.jdom.Element element)
decode from XML

Specified by:
decodeXML in class LLRPType
Parameters:
element - to decode

toString

public java.lang.String toString()
Description copied from class: LLRPType
String representation

Overrides:
toString in class LLRPType
Returns:
String

toString

public java.lang.String toString(int radix)
Specified by:
toString in class LLRPType

inRange

public boolean inRange(java.lang.String valueString)
expects a string as formated for XML

Specified by:
inRange in class LLRPType


Copyright © 2007 ETH Zurich.