public class GeoIntelligenceSensor_NCols extends Object implements IMimdMetadataValue
GeoIntelligenceSensor
nCols attribute.
This is a specialisation of an unsigned integer.
See ST1907 for more information on this data type.
Constructor and Description |
---|
GeoIntelligenceSensor_NCols(byte[] bytes)
Create GeoIntelligenceSensor_NCols from encoded bytes.
|
GeoIntelligenceSensor_NCols(byte[] bytes,
int offset,
int length)
Create GeoIntelligenceSensor_NCols from encoded bytes.
|
GeoIntelligenceSensor_NCols(long value)
Construct from value.
|
Modifier and Type | Method and Description |
---|---|
static GeoIntelligenceSensor_NCols |
fromBytes(byte[] bytes)
Create GeoIntelligenceSensor_NCols from encoded bytes.
|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
long |
getValue()
Get the value of this GeoIntelligenceSensor_NCols.
|
public GeoIntelligenceSensor_NCols(long value) throws KlvParseException
The minimum value is 0.
The value is in units of Columns.
value
- an unsigned integer value to initialise this GeoIntelligenceSensor_NCols with.KlvParseException
- if the value is not valid (e.g. outside of the valid range).public GeoIntelligenceSensor_NCols(byte[] bytes) throws KlvParseException
bytes
- Encoded byte array.KlvParseException
- if the byte array could not be parsed.public GeoIntelligenceSensor_NCols(byte[] bytes, int offset, int length) throws KlvParseException
This version allows parsing of a specific number of bytes from a given offset.
bytes
- Encoded byte array.offset
- the offset into the byte array to start decoding.length
- the number of bytes to decode.KlvParseException
- if the byte array could not be parsed.public static GeoIntelligenceSensor_NCols fromBytes(byte[] bytes) throws KlvParseException
bytes
- Encoded byte array.KlvParseException
- if the byte array could not be parsed.public String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public byte[] getBytes()
IMimdMetadataValue
getBytes
in interface IMimdMetadataValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public long getValue()
Copyright © 2022 West Ridge Systems. All rights reserved.