Class KlvEncodingDetectedString
java.lang.Object
org.codice.ddf.libs.klv.KlvDataElement<String>
org.codice.ddf.libs.klv.data.text.KlvEncodingDetectedString
Represents a KLV data element that has a String value. The string may not be the
machine's encoding, so it should be detected.
-
Field Summary
Fields inherited from class org.codice.ddf.libs.klv.KlvDataElement
key, keyBytes, name, value -
Constructor Summary
ConstructorsConstructorDescriptionKlvEncodingDetectedString(byte[] key, String name) Constructs aKlvDataElementthat describes how to interpret the value of a data element with the given key. -
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
-
KlvEncodingDetectedString
Constructs aKlvDataElementthat describes how to interpret the value of a data element with the given key.- Parameters:
key- the data element's keyname- a name describing the data element's value- Throws:
IllegalArgumentException- if any arguments are null
-
-
Method Details
-
decodeValue
- Specified by:
decodeValuein classKlvDataElement<String>
-
copy
- Specified by:
copyin classKlvDataElement<String>
-