public final class GSNAddress extends AbstractEncodedDataObject<byte[]>
This is a skeleton API, designed so that a binary-compatible convenience API could be introduced without having to upgrade to a new release.
The encoded representation is as tabulated below.
Data Encoding - based on 3GPP TS 23.003 V10.0.0 (2010-12) §5.1 pp25-26 | ||||||||
---|---|---|---|---|---|---|---|---|
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | |
Octet 0 | Address type | Address length | ||||||
Octet 1.. | Address |
encoded
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
GSNAddress(byte[] data)
Constructs a new GSNAddress object from network-encoded data.
|
GSNAddress(byte[] data,
int start,
int len)
Constructs a new GSNAddress object from part of network-encoded data.
|
Modifier and Type | Method and Description |
---|---|
GSNAddress |
clone()
Constructs a new mutable object that has a copy of the encoded state of this one.
|
byte[] |
getEncodedForm()
Gets the encoded form.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from "encodedValue" to byte[].
|
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public GSNAddress(byte[] data)
data
- network-encoded dataNullPointerException
- if data is nullpublic GSNAddress(byte[] data, int start, int len)
start
and is len
bytes long.data
- network-encoded datastart
- starting offset of network-encoded data in byte arraylen
- length of the partNullPointerException
- if data is nullIllegalArgumentException
- if len is negativepublic byte[] getEncodedForm()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignoredpublic GSNAddress clone()
clone
in interface DataObject
clone
in class AbstractDataObject