public class KlvString extends KlvDataElement<String>
key, keyBytes, name, value
Constructor and Description |
---|
KlvString(byte[] key,
String name)
Constructs a
KlvString representing a KLV data element that has a
String value encoded as UTF-8. |
KlvString(byte[] key,
String name,
String encoding)
Constructs a
KlvString representing a KLV data element that has a
String value encoded in the given encoding type. |
Modifier and Type | Method and Description |
---|---|
protected KlvDataElement |
copy() |
protected void |
decodeValue(Klv klv) |
getKey, getKeyAsString, getName, getValue, isErrorIndicated
public KlvString(byte[] key, String name)
KlvString
representing a KLV data element that has a
String value encoded as UTF-8.key
- the data element's keyname
- a name describing the data element's valuepublic KlvString(byte[] key, String name, String encoding)
KlvString
representing a KLV data element that has a
String value encoded in the given encoding type.key
- the data element's keyname
- a name describing the data element's valueencoding
- the string's encoding methodprotected void decodeValue(Klv klv)
decodeValue
in class KlvDataElement<String>
protected KlvDataElement copy()
copy
in class KlvDataElement<String>
This work is licensed under a Creative Commons Attribution 4.0 International License.