public abstract class SubTLV extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
protected byte[] |
tlv_bytes
Bytes of the TLV
|
protected int |
TLVType
Type of the TLV
|
protected int |
TotalTLVLength
Total length of the TLV (including type, length and padding)
|
Constructor and Description |
---|
SubTLV() |
SubTLV(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
decode() |
abstract void |
encode() |
protected void |
encodeHeader() |
byte[] |
getTlv_bytes() |
static int |
getTLVLength(byte[] bytes,
int offset) |
int |
getTLVType() |
int |
getTotalTLVLength() |
static int |
getTotalTLVLength(byte[] bytes,
int offset) |
static int |
getType(byte[] bytes,
int offset) |
protected void |
setTlv_bytes(byte[] tlv_bytes) |
protected void |
setTLVType(int tLVType) |
void |
setTotalTLVLength(int totalTLVLength) |
protected int TLVType
protected int TotalTLVLength
protected byte[] tlv_bytes
protected static final org.slf4j.Logger log
protected void encodeHeader()
public static int getTotalTLVLength(byte[] bytes, int offset)
public static int getTLVLength(byte[] bytes, int offset)
public static int getType(byte[] bytes, int offset)
public int getTLVType()
protected void setTLVType(int tLVType)
public byte[] getTlv_bytes()
protected void setTlv_bytes(byte[] tlv_bytes)
public abstract void encode()
protected abstract void decode()
public int getTotalTLVLength()
public void setTotalTLVLength(int totalTLVLength)
Copyright © 2016. All rights reserved.