public abstract class BGP4OptionalParameter extends BGP4Object
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...
| Parm. Type | Parm. Length | Parameter Value (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...
Parameter Type is a one octet field that unambiguously
identifies individual parameters. Parameter Length is a one
octet field that contains the length of the Parameter Value
field in octets. Parameter Value is a variable length field
that is interpreted according to the value of the Parameter
Type field.
| Modifier and Type | Field and Description |
|---|---|
protected int |
parameterLength |
protected int |
type |
bytes, length| Constructor and Description |
|---|
BGP4OptionalParameter() |
BGP4OptionalParameter(byte[] bytes,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeOptionalParameterHeader() |
byte[] |
getBytes() |
int |
getLength()
Get the object Length.
|
static int |
getLength(byte[] bytes,
int offset) |
int |
getParameterLength() |
static int |
getParameterLength(byte[] bytes,
int offset) |
int |
getType() |
static int |
getType(byte[] bytes,
int offset) |
void |
setBytes(byte[] bytes) |
void |
setParameterLength(int parameterLength) |
void |
setType(int type) |
equals, hashCode, setLengthclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitencodepublic BGP4OptionalParameter()
public BGP4OptionalParameter(byte[] bytes,
int offset)
protected void encodeOptionalParameterHeader()
public int getLength()
getLength in interface BGP4ElementgetLength in class BGP4Objectpublic byte[] getBytes()
getBytes in interface BGP4ElementgetBytes in class BGP4Objectpublic void setBytes(byte[] bytes)
setBytes in class BGP4Objectpublic int getType()
public void setType(int type)
public static int getParameterLength(byte[] bytes,
int offset)
public static int getLength(byte[] bytes,
int offset)
public static int getType(byte[] bytes,
int offset)
public int getParameterLength()
public void setParameterLength(int parameterLength)
Copyright © 2016. All rights reserved.