public class KlvByte extends KlvNumericalDataElement<Byte>
errorIndicatorValue
key, keyBytes, name, value
Constructor and Description |
---|
KlvByte(byte[] key,
String name)
Constructs a
KlvByte representing a KLV element that has a byte value. |
KlvByte(byte[] key,
String name,
Optional<Byte> errorIndicatorValue)
Constructs a
KlvByte representing a KLV element that has a byte value. |
Modifier and Type | Method and Description |
---|---|
protected KlvByte |
copy() |
protected void |
decodeValue(Klv klv) |
isErrorIndicated
getKey, getKeyAsString, getName, getValue
public KlvByte(byte[] key, String name)
KlvByte
representing a KLV element that has a byte value.key
- the data element's keyname
- a name describing the data element's valuepublic KlvByte(byte[] key, String name, Optional<Byte> errorIndicatorValue)
KlvByte
representing a KLV element that has a byte value.key
- the data element's keyname
- a name describing the data element's valueerrorIndicatorValue
- value that indicates an encoded errorprotected void decodeValue(Klv klv)
decodeValue
in class KlvNumericalDataElement<Byte>
protected KlvByte copy()
copy
in class KlvNumericalDataElement<Byte>
This work is licensed under a Creative Commons Attribution 4.0 International License.