Class KlvString
Represents a KLV data element that has a String value.
-
Field Summary
Fields inherited from class org.codice.ddf.libs.klv.KlvDataElement
key, keyBytes, name, value -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aKlvStringrepresenting a KLV data element that has a String value encoded as UTF-8.Constructs aKlvStringrepresenting a KLV data element that has a String value encoded in the given encoding type. -
Method Summary
Modifier and TypeMethodDescriptionprotected KlvDataElementcopy()protected voiddecodeValue(Klv klv) Methods inherited from class org.codice.ddf.libs.klv.KlvDataElement
getKey, getKeyAsString, getName, getValue, isErrorIndicated
-
Constructor Details
-
KlvString
Constructs aKlvStringrepresenting a KLV data element that has a String value encoded as UTF-8.- Parameters:
key- the data element's keyname- a name describing the data element's value
-
KlvString
Constructs aKlvStringrepresenting a KLV data element that has a String value encoded in the given encoding type.- Parameters:
key- the data element's keyname- a name describing the data element's valueencoding- the string's encoding method
-
-
Method Details
-
decodeValue
- Specified by:
decodeValuein classKlvDataElement<String>
-
copy
- Specified by:
copyin classKlvDataElement<String>
-