public class UTF8String extends LLRPType
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Integer |
LENGTH |
protected java.lang.String |
string |
Modifier | Constructor and Description |
---|---|
protected |
UTF8String() |
|
UTF8String(org.jdom.Element element)
Creates a new UTF8String object from jdom element - used for xml decoding
|
|
UTF8String(LLRPBitList subList)
Creates a new UTF8String object.
|
|
UTF8String(java.lang.String string)
Creates a new UTF8String object.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeBinary(LLRPBitList list)
decode bits from BitList.
|
void |
decodeXML(org.jdom.Element element)
create objects from xml.
|
LLRPBitList |
encodeBinary()
encode to binary representation
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
boolean |
equals(LLRPType other)
compare two UTF8Strings
|
java.lang.Integer |
getByteLength()
number of bytes used to represent this type
|
int |
hashCode() |
boolean |
inRange(java.lang.String valueString) |
static int |
length()
return number of bits used to represent this type
|
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
toXMLString
protected static java.lang.Integer LENGTH
protected java.lang.String string
protected UTF8String()
public UTF8String(LLRPBitList subList)
subList
- to be decodedpublic UTF8String(org.jdom.Element element)
element
- to be decodedpublic UTF8String(java.lang.String string)
string
- to be representedpublic void decodeBinary(LLRPBitList list)
decodeBinary
in class LLRPType
list
- to be decodedpublic static int length()
public LLRPBitList encodeBinary()
encodeBinary
in class LLRPType
public boolean equals(LLRPType other)
other
- to comparepublic java.lang.Integer getByteLength()
public void decodeXML(org.jdom.Element element)
LLRPType
public org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
public java.lang.String toString()
LLRPType
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007 ETH Zurich.