public abstract class PCEPSubTLV extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
protected byte[] |
subtlv_bytes
Bytes of the SubTLV
|
protected int |
SubTLVType
Type of the SubTLV
|
protected int |
TotalSubTLVLength
Total length of the SubTLV (including type, length and padding)
|
Constructor and Description |
---|
PCEPSubTLV() |
PCEPSubTLV(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
abstract void |
encode() |
protected void |
encodeHeader() |
boolean |
equals(Object obj) |
byte[] |
getSubTLV_bytes() |
static int |
getSubTLVLength(byte[] bytes,
int offset) |
int |
getSubTLVType() |
int |
getSubTLVValueLength() |
int |
getTotalSubTLVLength() |
static int |
getTotalSubTLVLength(byte[] bytes,
int offset) |
static int |
getType(byte[] bytes,
int offset) |
int |
hashCode() |
protected void |
setSubTLV_bytes(byte[] subtlv_bytes) |
protected void |
setSubTLVType(int subTLVType) |
protected void |
setSubTLVValueLength(int SubTLVValueLength)
Sets the lenght of the VALUE of the TLV.
|
protected int SubTLVType
protected int TotalSubTLVLength
protected byte[] subtlv_bytes
protected static final org.slf4j.Logger log
public PCEPSubTLV()
public PCEPSubTLV(byte[] bytes, int offset)
protected void encodeHeader()
public int getSubTLVValueLength()
public int getTotalSubTLVLength()
public static int getTotalSubTLVLength(byte[] bytes, int offset)
public static int getSubTLVLength(byte[] bytes, int offset)
public static int getType(byte[] bytes, int offset)
public int getSubTLVType()
protected void setSubTLVType(int subTLVType)
public byte[] getSubTLV_bytes()
protected void setSubTLV_bytes(byte[] subtlv_bytes)
protected void setSubTLVValueLength(int SubTLVValueLength)
SubTLVValueLength
- public abstract void encode()
Copyright © 2016. All rights reserved.