Class KlvString

java.lang.Object
org.codice.ddf.libs.klv.KlvDataElement<String>
org.codice.ddf.libs.klv.data.text.KlvString

public class KlvString extends KlvDataElement<String>
Represents a KLV data element that has a String value.
  • Constructor Details

    • KlvString

      public KlvString(byte[] key, String name)
      Constructs a KlvString representing a KLV data element that has a String value encoded as UTF-8.
      Parameters:
      key - the data element's key
      name - a name describing the data element's value
    • KlvString

      public 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.
      Parameters:
      key - the data element's key
      name - a name describing the data element's value
      encoding - the string's encoding method
  • Method Details