public abstract class OSPFSubTLV 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 OSPF TLV 
 | 
protected int | 
TotalTLVLength
Total length of the TLV (including type, length and padding) 
 | 
| Constructor and Description | 
|---|
OSPFSubTLV()  | 
OSPFSubTLV(byte[] bytes,
          int offset)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void | 
decode()  | 
abstract void | 
encode()  | 
protected void | 
encodeHeader()  | 
boolean | 
equals(Object obj)  | 
byte[] | 
getTlv_bytes()  | 
static int | 
getTLVLength(byte[] bytes,
            int offset)  | 
int | 
getTLVType()  | 
int | 
getTLVValueLength()  | 
int | 
getTotalTLVLength()  | 
static int | 
getTotalTLVLength(byte[] bytes,
                 int offset)  | 
static int | 
getType(byte[] bytes,
       int offset)  | 
int | 
hashCode()  | 
protected void | 
setTlv_bytes(byte[] tlv_bytes)  | 
protected void | 
setTLVType(int tLVType)  | 
protected void | 
setTLVValueLength(int TLVValueLength)
Sets the lenght of the VALUE of the TLV. 
 | 
protected int TLVType
protected int TotalTLVLength
protected byte[] tlv_bytes
protected static final org.slf4j.Logger log
public OSPFSubTLV()
public OSPFSubTLV(byte[] bytes,
                  int offset)
protected void encodeHeader()
public int getTLVValueLength()
public int getTotalTLVLength()
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)
protected void setTLVValueLength(int TLVValueLength)
TLVValueLength - public abstract void encode()
                     throws MalformedOSPFSubTLVException
MalformedOSPFSubTLVExceptionprotected abstract void decode()
                        throws MalformedOSPFSubTLVException
MalformedOSPFSubTLVExceptionCopyright © 2016. All rights reserved.