|
||||||||||
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.UTF8String
public class UTF8String
Strig with UT8 Encoding!
Field Summary | |
---|---|
protected static java.lang.Integer |
LENGTH
|
protected java.lang.String |
string
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.llrp.ltk.types.LLRPType |
---|
toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.lang.Integer LENGTH
protected java.lang.String string
Constructor Detail |
---|
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 representedMethod Detail |
---|
public 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 compare
public java.lang.Integer getByteLength()
public void decodeXML(org.jdom.Element element)
LLRPType
decodeXML
in class LLRPType
element
- to be decodedpublic org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
encodeXML
in class LLRPType
name
- returned content should havens
- Namespace of elementspublic java.lang.String toString()
LLRPType
toString
in class LLRPType
public java.lang.String toString(int radix)
toString
in class LLRPType
public int hashCode()
hashCode
in class java.lang.Object
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 |