Class KlvUnsignedByte
java.lang.Object
org.codice.ddf.libs.klv.KlvDataElement<T>
org.codice.ddf.libs.klv.data.numerical.KlvNumericalDataElement<Short>
org.codice.ddf.libs.klv.data.numerical.KlvUnsignedByte
Represents a KLV element that has an unsigned byte value.
-
Field Summary
Fields inherited from class org.codice.ddf.libs.klv.data.numerical.KlvNumericalDataElement
errorIndicatorValueFields inherited from class org.codice.ddf.libs.klv.KlvDataElement
key, keyBytes, name, value -
Constructor Summary
ConstructorsConstructorDescriptionKlvUnsignedByte(byte[] key, String name) Constructs aKlvUnsignedByterepresenting a KLV element that has an unsigned byte value.KlvUnsignedByte(byte[] key, String name, Optional<Short> errorIndicatorValue) Constructs aKlvUnsignedByterepresenting a KLV element that has an unsigned byte value. -
Method Summary
Modifier and TypeMethodDescriptionprotected KlvUnsignedBytecopy()protected voiddecodeValue(Klv klv) Methods inherited from class org.codice.ddf.libs.klv.data.numerical.KlvNumericalDataElement
isErrorIndicatedMethods inherited from class org.codice.ddf.libs.klv.KlvDataElement
getKey, getKeyAsString, getName, getValue
-
Constructor Details
-
KlvUnsignedByte
Constructs aKlvUnsignedByterepresenting a KLV element that has an unsigned byte value.- Parameters:
key- the data element's keyname- a name describing the data element's value
-
KlvUnsignedByte
Constructs aKlvUnsignedByterepresenting a KLV element that has an unsigned byte value.- Parameters:
key- the data element's keyname- a name describing the data element's valueerrorIndicatorValue- value that indicates an encoded error
-
-
Method Details
-
decodeValue
- Specified by:
decodeValuein classKlvNumericalDataElement<Short>
-
copy
- Specified by:
copyin classKlvNumericalDataElement<Short>
-