public class LLDPOrganizationalTLV extends LLDPTLV
Modifier and Type | Field and Description |
---|---|
static int |
MAX_INFOSTRING_LENGTH |
static byte |
ORGANIZATIONAL_TLV_TYPE |
protected byte[] |
oui |
static int |
OUI_LENGTH |
protected byte |
subType |
static int |
SUBTYPE_LENGTH |
Constructor and Description |
---|
LLDPOrganizationalTLV() |
Modifier and Type | Method and Description |
---|---|
LLDPTLV |
deserialize(java.nio.ByteBuffer bb) |
boolean |
equals(java.lang.Object o) |
byte[] |
getInfoString()
Returns the value of information string.
|
byte[] |
getOUI()
Returns the value of the OUI.
|
byte |
getSubType()
Returns the value of the sub type.
|
int |
hashCode() |
byte[] |
serialize() |
LLDPOrganizationalTLV |
setInfoString(byte[] infoString)
Set the value of information string.
|
LLDPOrganizationalTLV |
setInfoString(java.lang.String infoString)
Set the value of information string.
|
LLDPOrganizationalTLV |
setOUI(byte[] oui)
Set the value of OUI.
|
LLDPOrganizationalTLV |
setSubType(byte subType)
Set the value of sub type.
|
public static final int OUI_LENGTH
public static final int SUBTYPE_LENGTH
public static final byte ORGANIZATIONAL_TLV_TYPE
public static final int MAX_INFOSTRING_LENGTH
protected byte[] oui
protected byte subType
public LLDPOrganizationalTLV setOUI(byte[] oui)
oui
- The value of OUI to be set.public byte[] getOUI()
public LLDPOrganizationalTLV setSubType(byte subType)
subType
- The value of sub type to be set.public byte getSubType()
public LLDPOrganizationalTLV setInfoString(byte[] infoString)
infoString
- the byte array of the value of information string.public LLDPOrganizationalTLV setInfoString(java.lang.String infoString)
infoString
- the String value of information string.public byte[] getInfoString()
public LLDPTLV deserialize(java.nio.ByteBuffer bb) throws DeserializationException
deserialize
in class LLDPTLV
DeserializationException